]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965) (GH-21876)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 14 Aug 2020 15:18:24 +0000 (08:18 -0700)
committerGitHub <noreply@github.com>
Fri, 14 Aug 2020 15:18:24 +0000 (11:18 -0400)
commit33d3c64095bcdf9066a3441f6dda5d2e2f4118a8
tree5faf488c6e49703df2bdb74c546d31a22b168959
parent7c288413db8c2b84dd476b0c8a19f85110d99a2f
bpo-41025: Fix subclassing for zoneinfo.ZoneInfo (GH-20965) (GH-21876)

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 87d8287865e5c9f137f6b5cf8c34c2c509eb5e9d)

Co-authored-by: Paul Ganssle <paul@ganssle.io>
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