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
This issue tracks the remaining things needed for making user-defined protocols work.
Now that #3132 was merged, mypy understand protocols. However, we still need runtime support for protocols (the Protocol class) and Protocol needs to be added to typeshed before protocols can actually be used in user code.
Activity
JukkaL commentedon Aug 16, 2017
cc @ilevkivskyi
ilevkivskyi commentedon Aug 19, 2017
OK, here is a PR with runtime implementation in
typing_extensionspython/typing#464 and a PR with the corresponding stubs python/typeshed#1564JukkaL commentedon Nov 22, 2017
This has been supported for a while now.