mirror of
https://github.com/python/cpython.git
synced 2026-02-07 10:20:33 +00:00
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 043cd60abe)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
9de590151d
commit
2cc19a5463
3 changed files with 48 additions and 2 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Non-protocol subclasses of :class:`typing.Protocol` ignore now the
|
||||
``__init__`` method inherited from protocol base classes.
|
||||
Loading…
Add table
Add a link
Reference in a new issue