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

Introduce Self type #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Introduce Self type #179

wants to merge 1 commit into from

Conversation

jfhbrook
Copy link
Owner

In #177, I stubbed out typing Self parameters, but I set Self = Any to maintain Python 3.8, 3.9 and 3.10 support. This PR closes the loop and uses typing.Self for that annotation. This yields a slight improvement in type safety.

This change does remove Python 3.8, 3.9 and 3.10 support.

@jfhbrook
Copy link
Owner Author

Google thinks these are the release dates for the relevant Python versions:

  • 3.8 (minimum previously) - October 2019, 5 1/2 years ago
  • 3.9 - October 2020, 4 1/2 years ago
  • 3.10 - October 2021, 3 1/2 years ago
  • 3.11 (minimum in this PR) - October 2022, 2 1/2 years ago

I'd be OK dropping 3.8 support - 2019 was a while ago! But dropping 3.10 might be a bridge too far. Dunno.

This change removes Python 3.8, 3.9 and 3.10 support.

This reverts commit 6952e9a.
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.

1 participant