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

Restoring backward compatibilities #53

Merged
merged 7 commits into from
Sep 4, 2024
Merged

Conversation

seballgeyer
Copy link
Collaborator

Changes in the code to make the package compatible for python 3.9 again.
Python 3.9 is the default install on Apple MacOS, it's end of life is in October 2025.

Main changes are:

  • moved from match/case statement to dictionary (1 occurence)
  • moved from the typehint | operator to Union

a few other fixes/simplification the time I was doing it.

@seballgeyer seballgeyer self-assigned this Sep 4, 2024
Copy link
Collaborator

@ronaldmaj ronaldmaj left a comment

Choose a reason for hiding this comment

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

These changes look great. Also really like that we are now testing these unit tests across various Python versions - this is a really nice addition.

I've tested this locally on some functions, seem to work well.

The one thing that is coming along for the ride here is a number of black changes that I don't think should be coming through.
Namely, compression of lines. We've used line-width = 120 characters for other pushes, so some of the changes in here I don't think should come through if we continue to use that convention

Copy link
Collaborator

@ronaldmaj ronaldmaj left a comment

Choose a reason for hiding this comment

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

Thanks for going through with black 👍
I can see it's picked up quite a bit 😄
Happy for this to go in

@ronaldmaj ronaldmaj merged commit b659b9a into main Sep 4, 2024
4 checks passed
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.

2 participants