-
Notifications
You must be signed in to change notification settings - Fork 8
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
Restore support for Python 3.9 #21
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
I thought that maybe typing.Union
was deprecated and that's why I saw so much RAPIDS code preferring the x | y
type of syntax. But checked https://docs.python.org/3/library/stdtypes.html#types-union and I don't see any indication of that, so totally support this.
To help others understand the purpose for this PR if they find it in the future, linking these two things here:
- these hints were introduced in add mypy to linting checks #19
- ... but only tested with Python 3.10, and broke when used in a Python 3.9 build on Use rapids-build-backend cuml#5804 (build link)
I left one small comment, but do what you want with it... I don't need to review again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to continue using the latest
CI images and instead configure mypy to do type-checking with Python 3.9 support? https://mypy.readthedocs.io/en/stable/config_file.html#confval-python_version
We could, but I really want to test the whole thing with Python 3.9 anyway, to prevent the usage of other post-3.9 features. |
#21 restored Python 3.9 support, but used hard-coded CI images. Use https://github.com/rapidsai/shared-workflows to select an appropriate CI image.
#19 added MyPy linting, but CI did not run under Python 3.9, so the new type annotation syntax was used. Use the old syntax to support Python 3.9, and run CI in Python 3.9.