-
-
Notifications
You must be signed in to change notification settings - Fork 695
Enhance typing with Self to support subclassing for multiple Python versions #1174
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
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 for the contribution. Added a comment.
I also approved the workflow for a test run.
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.
Shouldn't this be added to requirements for 3.11 and below?
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.
A recent PR was merged to remove typing extensions for 3.8 and below. Mind rebasing this CR against the change and updating the requirements.txt to only pull it in for 3.9 and 3.10
reference PR - #1176
...ersions
Pull Request Checklist
Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:
tox
ormake test
to find out!).tox -e lint
ormake lint
to find out!).master
branch.If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!
Description of Changes
This PR enhances type hints in the Arrow library by using Self to support subclassing, ensuring compatibility with both Python 3.11 and earlier versions. The following changes were made:
Testing:
All existing tests were run and passed successfully, ensuring no breaking changes were introduced.
Issue:
Fixes Issue #1168.
Please review and merge this PR to improve the code's robustness and maintainability.