[New-bugs-announce] [issue44807] typing.Protocol silently overrides __init__ method of delivered class
Yurii Karabas
report at bugs.python.org
Mon Aug 2 05:53:46 EDT 2021
New submission from Yurii Karabas <1998uriyyo at gmail.com>:
typing.Protocol silently overrides __init__ method of delivered class.
I think it should be forbidden to define __init__ method at Protocol delivered class in case if cls is not Protocol.
----------
components: Library (Lib)
messages: 398742
nosy: kj, uriyyo
priority: normal
severity: normal
status: open
title: typing.Protocol silently overrides __init__ method of delivered class
type: behavior
versions: Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44807>
_______________________________________
More information about the New-bugs-announce
mailing list