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 python3.6 support #3605
drop python3.6 support #3605
Conversation
@PrettyWood would love your opinion if you have some time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Always nice to have negative PRs with some clean up :)
@@ -104,7 +77,8 @@ def get_all_type_hints(obj: Any, globalns: Any = None, localns: Any = None) -> A | |||
|
|||
def get_origin(t: Type[Any]) -> Optional[Type[Any]]: | |||
if type(t).__name__ in AnnotatedTypeNames: | |||
return cast(Type[Any], Annotated) # mypy complains about _SpecialForm in py3.6 | |||
# weirdly this is a runtime requirement, as well as for mypy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super weird 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ye, things like this scare me a little 😨.
* drop python3.6 support * revert small change * fix 3.7 failures * more cases and cleanup * add change description
* drop python3.6 support * revert small change * fix 3.7 failures * more cases and cleanup * add change description
Change Summary
Drop support for python3.6 which has reached EOL.
This suggests that python 3.6 still makes up around 5% of downloads, but that should drop quickly now, and you have to break some eggs to make an omlet.
Related issue number
Don't remember what issue we discussed this on, but we previously agreed to drop python 3.6 suport after v1.9 was released.
Checklist
changes/<pull request or issue id>-<github username>.md
file added describing change(see changes/README.md for details)