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

Python 3.9 support #140

Merged
merged 9 commits into from
Mar 27, 2024
Merged

Python 3.9 support #140

merged 9 commits into from
Mar 27, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Mar 27, 2024

This PR adds support for Python 3.9.

I had to refactor to avoid things only available in 3.10+:

  • match (PEP 636)
  • union types (PEP 604)
  • @dataclass(slots=True)
  • traceback.format_exception with a single argument

I could add __slots__ manually, but I think this is in premature optimization territory.

This fixes #43.

Copy link
Contributor

@achille-roussel achille-roussel left a comment

Choose a reason for hiding this comment

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

This got fixed faster than I expected 😄

@chriso chriso self-assigned this Mar 27, 2024
@chriso chriso merged commit bc89165 into main Mar 27, 2024
5 checks passed
@chriso chriso deleted the py309 branch March 27, 2024 03:54
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.

Add support for Python 3.9
2 participants