Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop support for Python 3.7 #2178

Merged
merged 6 commits into from
Jul 13, 2023
Merged

Drop support for Python 3.7 #2178

merged 6 commits into from
Jul 13, 2023

Conversation

Kludex
Copy link
Sponsor Member

@Kludex Kludex commented Jun 8, 2023

Python 3.7 EOL is coming: https://endoflife.date/python.

@Kludex Kludex marked this pull request as draft June 8, 2023 06:43
@Kludex Kludex marked this pull request as ready for review June 19, 2023 07:40
@Kludex Kludex requested a review from a team June 19, 2023 07:40
starlette/routing.py Outdated Show resolved Hide resolved
@Kludex Kludex added this to the Version 1.0 milestone Jun 20, 2023
@Kludex
Copy link
Sponsor Member Author

Kludex commented Jul 5, 2023

I'll make the next release with 3.7, then I'll merge this.

# TODO: Make `__name` a positional-only argument when we drop Python 3.7 support.
def url_path_for(self, __name: str, **path_params: typing.Any) -> URLPath:
return self.router.url_path_for(__name, **path_params)
def url_path_for(self, /, name: str, **path_params: typing.Any) -> URLPath:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a mistake here?

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't supposed to be... Why do you think it is?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recall from our earlier discussion that name should be a positional-only parameter.

Maybe it should be changed to (self, name: str, /, **path_params: typing.Any)

Copy link
Sponsor Member Author

@Kludex Kludex Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it's a mistake! 🤣

Thanks! 🙏

@Kludex Kludex mentioned this pull request Jul 12, 2023
3 tasks
@adriangb
Copy link
Member

LGTM

@Kludex Kludex merged commit 5d12b86 into master Jul 13, 2023
4 checks passed
@Kludex Kludex deleted the burn/drop-python-3.7 branch July 13, 2023 08:19
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants