[issue45121] Regression in 3.9.7 with typing.Protocol

Shantanu report at bugs.python.org
Mon Sep 6 21:24:08 EDT 2021


Shantanu <hauntsaninja at gmail.com> added the comment:

As I mentioned in the post, bpo-45081 actually makes this issue worse, since we get a RecursionError.

I think `TypeError: Protocols cannot be instantiated` is probably okay behaviour (as opposed to RecursionError), more just unfortunate that it seems to be an unanticipated breaking change.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45121>
_______________________________________


More information about the Python-bugs-list mailing list