]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)
authorPaul Ganssle <paul@ganssle.io>
Fri, 14 Aug 2020 02:38:30 +0000 (22:38 -0400)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2020 02:38:30 +0000 (22:38 -0400)
commit87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d
treea7608fbc662266616e4955df41f75857c43edfca
parente55de68be3e5b977a17d3c0ac9805b0feff8fedc
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965)

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
Lib/test/test_zoneinfo/test_zoneinfo.py
Misc/NEWS.d/next/Library/2020-06-18-10-34-59.bpo-41025.elf_nz.rst [new file with mode: 0644]
Modules/_zoneinfo.c