You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typing.pyi is central to type checking and typecheckers need to heavily special case for the contents of the stub. Therefore, I think we should only make changes here if they fix a concrete problem for users, not out of mere perfectionism.
Right now
_ProtocolMeta
is never used:typeshed/stdlib/typing.pyi
Line 282 in 739711e
But, it is a base metaclass for
Protocol
type intyping.py
: https://github.com/python/cpython/blame/723ebe76e787cfa6b08cc9587dd679f3234a1025/Lib/typing.py#L1965It is also used for all
Protocol
types (we currently just useABCMeta
for them`):typeshed/stdlib/typing.pyi
Lines 287 to 305 in 739711e
CPython: https://github.com/python/cpython/blame/723ebe76e787cfa6b08cc9587dd679f3234a1025/Lib/typing.py#L2745
So, the question is:
Protocol
class? It is rather complex, because right nowProtocol
is_SpecialForm
Protocol
types intyping.pyi
?The text was updated successfully, but these errors were encountered: