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
Have a look at #637 . In essence, if something is not expressable in a stub file or with inline annotations according to the currently accepted list of PEPs, (ie, something needs a plugin), Pyright will not be supporting it "in the near future", if at all.
Also have you looked at Protocols, which are part of the ofificial spec for type checking in Python? They effectively let you express the same thing as zope interfaces(I think, never used zope.interface before) statically, and you can even use them in dynamic isinstance() calls if you decorate them with @typing.runtime_checkable()
zope.interface provides nominal typing rather than structural typing (despite some confused language in PEP 544 to the contrary) so a z.i.Interface is more like an ABC than a Protocol. Anyhow, thanks for the reply!
Something like https://github.com/Shoobx/mypy-zope
The text was updated successfully, but these errors were encountered: