Skip to content

Fix subclassing in C implementation#83

Merged
pganssle merged 1 commit into
masterfrom
fix_c_subclassing
Jun 18, 2020
Merged

Fix subclassing in C implementation#83
pganssle merged 1 commit into
masterfrom
fix_c_subclassing

Conversation

@pganssle

@pganssle pganssle commented Jun 18, 2020

Copy link
Copy Markdown
Owner

__init_subclass__ was not a classmethod, which means that subclassing ZoneInfo was impossible. This was missed because the C module "subclass" test case was not actually testing the subclass, and was actually just running the exact same tests as CZoneInfoTest.

Fixes #82

CC @sdispater

__init_subclass__ was not a classmethod, which means that subclassing
ZoneInfo was impossible. This was missed because the C module "subclass" test
case was not actually testing the subclass, and was actually just
running the exact same tests as CZoneInfoTest.
@pganssle
pganssle merged commit dfadef0 into master Jun 18, 2020
@pganssle
pganssle deleted the fix_c_subclassing branch June 18, 2020 18:35
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.

C implementation of ZoneInfo cannot be subclassed

2 participants