This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients kj, serhiy.storchaka, uriyyo
Date 2021-08-02.11:45:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627904721.24.0.0992272989957.issue44806@roundup.psfhosted.org>
In-reply-to
Content
There is other related case:

>>> from typing import *
>>> class P(Protocol): pass
... 
>>> class B:
...     def __init__(self):
...         self.test = 'OK'
... 
>>> class D(P, B):
...     pass
... 
>>> D().test
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'D' object has no attribute 'test'
History
Date User Action Args
2021-08-02 11:45:21serhiy.storchakasetrecipients: + serhiy.storchaka, uriyyo, kj
2021-08-02 11:45:21serhiy.storchakasetmessageid: <1627904721.24.0.0992272989957.issue44806@roundup.psfhosted.org>
2021-08-02 11:45:21serhiy.storchakalinkissue44806 messages
2021-08-02 11:45:21serhiy.storchakacreate