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 julianfortune
Recipients edgarrmondragon, eric.smith, icgood, julianfortune, kj, lukasz.langa, miss-islington, serhiy.storchaka, shrik, uriyyo
Date 2021-09-12.20:42:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631479373.27.0.214807648277.issue45081@roundup.psfhosted.org>
In-reply-to
Content
Ian,

`MyProtocol` does not provide an `__init__()`, and thus
```
super().__init__()
```
is calling the `__init__()` from `Protocol`. This results in the `TypeError`.

Simply remove `super().__init__()` to resolve your issue.

This behavior was changed in https://github.com/python/cpython/pull/27545 (see `Lib/typing.py:1384`); I don't see what you are reporting as a regression, I see it as correct behavior that I would expect. Apologies if you feel differently.

Cheers,
Julian
History
Date User Action Args
2021-09-12 20:42:53julianfortunesetrecipients: + julianfortune, eric.smith, lukasz.langa, serhiy.storchaka, icgood, miss-islington, uriyyo, kj, edgarrmondragon, shrik
2021-09-12 20:42:53julianfortunesetmessageid: <1631479373.27.0.214807648277.issue45081@roundup.psfhosted.org>
2021-09-12 20:42:53julianfortunelinkissue45081 messages
2021-09-12 20:42:53julianfortunecreate