]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 2 Aug 2021 17:08:59 +0000 (10:08 -0700)
committerGitHub <noreply@github.com>
Mon, 2 Aug 2021 17:08:59 +0000 (10:08 -0700)
commit2cc19a5463c804b2f39b94de896d55dcb57a364c
treea92e648481d76d40bcbd84e4e54c74e24dabd2e8
parent9de590151d49f2988d3a5c4d30b9daf86616f6f3
bpo-44806: Fix __init__ in subclasses of protocols (GH-27545)

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]