-
-
Notifications
You must be signed in to change notification settings - Fork 34k
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo #20965
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
48ed5b8 to
d03b88a
Compare
|
Will this make it to the 3.9.0 final release? |
|
Yes, I was just waiting for a review. |
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
d03b88a to
4afb655
Compare
|
We may need to ask @ambv to explicitly backport it at this point, which I think would be appropriate. I didn't realize that after rc1 the I think this is important enough to get backported. Wish I had remembered earlier that this PR was still open. |
|
Thanks @pganssle for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9. |
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
(cherry picked from commit 87d8287)
Co-authored-by: Paul Ganssle <paul@ganssle.io>
|
GH-21876 is a backport of this pull request to the 3.9 branch. |
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
(cherry picked from commit 87d8287)
Co-authored-by: Paul Ganssle <paul@ganssle.io>
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfo gave the following error:
TypeError: unbound method ZoneInfo.__init_subclass__() needs an argument
https://bugs.python.org/issue41025
Prior to this change, attempting to subclass the C implementation of
zoneinfo.ZoneInfogave the following error:CC: @sdispater
https://bugs.python.org/issue41025
Automerge-Triggered-By: @pganssle