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

Minimum Python version for 21.1 is 3.6.2 #9831

Closed
philthompson10 opened this issue Apr 24, 2021 · 3 comments · Fixed by #9835
Closed

Minimum Python version for 21.1 is 3.6.2 #9831

philthompson10 opened this issue Apr 24, 2021 · 3 comments · Fixed by #9835

Comments

@philthompson10
Copy link

Because of the use of typing.NoReturn I think the minimum Python version for 21.1 should be 3.6.2 rather than just 3.6.

Phil

@pfmoore
Copy link
Member

pfmoore commented Apr 24, 2021

If typing added a name in 3.6.2, that sounds like a breaking change that probably shouldn't have been allowed by CPython 🙁

This appears to have been introduced in #9424. We used NoReturn before that, but it was guarded by if TYPE_CHECKING, so didn't affect runtime behaviour.

@jamescurtin
Copy link
Contributor

👋 I put up a PR to resolve this. As I am a first-time contributor, could a maintainer please unblock the CI?
image

Thank you!

@pfmoore
Copy link
Member

pfmoore commented Apr 24, 2021

that sounds like a breaking change that probably shouldn't have been allowed by CPython

Actually the typing library is provisional in 3.6, so this is allowable. We probably shouldn't have been quite so quick to remove the if TYPE_CHECKING guards...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants