Skip to content

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 😄

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