mypy-zope
mypy-zope copied to clipboard
`zope-stubs/__init__.pyi` prevents mypy from detecting `zope` as a namespace package
Example:
If zope-stubs/__init__.pyi
exists, VSCode with mypy addon fails to resolve all Zope packages other than zope.interface
and zope.schema
, for example zope.component
, zope.location
, zope.site
all have no type hints.
If zope-stubs/__init__.pyi
is removed, then VSCode works with all Zope packages, and can still benefit from the stubs.