We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typing_extensions.Protocol
typing.Protocol
1 parent fd1f853 commit cfd49f8Copy full SHA for cfd49f8
doc/index.rst
@@ -304,6 +304,12 @@ Special typing primitives
304
``typing_extensions.Protocol`` simultaneously. Previously, this led to
305
:py:exc:`TypeError` being raised due to a metaclass conflict.
306
307
+ It is recommended to avoid doing this if possible. Not all features and
308
+ bugfixes that ``typing_extensions.Protocol`` backports from newer Python
309
+ versions are guaranteed to work if :py:class:`typing.Protocol` is also
310
+ present in a protocol class's :py:term:`method resolution order`. See
311
+ :issue:`245` for some examples.
312
+
313
.. data:: Required
314
315
See :py:data:`typing.Required` and :pep:`655`. In ``typing`` since 3.11.
0 commit comments