]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Aug 2021 16:52:16 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Aug 2021 16:52:16 +0000 (18:52 +0200)
commit0f6a7739df0055b5c6abe2180f1be97ea4da87b7
treee3a6dac82ff08d62026f63e036faeb4ebb7447c9
parent4817c1439519081d7bd9b396bb18b0f4124613be
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545) (GH-27559)

Non-protocol subclasses of protocol ignore now the __init__ method
inherited from protocol base classes.
(cherry picked from commit 043cd60abed09edddc7185bcf7d039771acc734d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_typing.py
Lib/typing.py
Misc/NEWS.d/next/Library/2021-08-02-14-37-32.bpo-44806.wOW_Qn.rst [new file with mode: 0644]