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 python3.6 support #3605

Merged
merged 5 commits into from Jan 2, 2022
Merged

drop python3.6 support #3605

merged 5 commits into from Jan 2, 2022

Conversation

samuelcolvin
Copy link
Member

@samuelcolvin samuelcolvin commented Dec 31, 2021

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

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • changes/<pull request or issue id>-<github username>.md file added describing change
    (see changes/README.md for details)
  • My PR is ready to review, please add a comment including the phrase "please review" to assign reviewers

@samuelcolvin samuelcolvin marked this pull request as ready for review January 1, 2022 15:57
@samuelcolvin
Copy link
Member Author

@PrettyWood would love your opinion if you have some time.

Copy link
Member

@PrettyWood PrettyWood left a 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
Copy link
Member

Choose a reason for hiding this comment

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

super weird 🤔

Copy link
Member Author

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 😨.

@samuelcolvin samuelcolvin merged commit 6f46a5a into master Jan 2, 2022
@samuelcolvin samuelcolvin deleted the drop-python3.6 branch January 2, 2022 13:53
samuelcolvin added a commit that referenced this pull request May 14, 2022
@samuelcolvin samuelcolvin mentioned this pull request May 14, 2022
11 tasks
samuelcolvin added a commit that referenced this pull request May 14, 2022
samuelcolvin added a commit that referenced this pull request May 19, 2022
ntaylorwss pushed a commit to nicejobinc/pydantic that referenced this pull request Jun 24, 2022
* drop python3.6 support

* revert small change

* fix 3.7 failures

* more cases and cleanup

* add change description
ntaylorwss pushed a commit to nicejobinc/pydantic that referenced this pull request Jul 7, 2022
* drop python3.6 support

* revert small change

* fix 3.7 failures

* more cases and cleanup

* add change description
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.

None yet

2 participants