mypy-zope icon indicating copy to clipboard operation
mypy-zope copied to clipboard

`zope-stubs/__init__.pyi` prevents mypy from detecting `zope` as a namespace package

Open bzczb opened this issue 1 year ago • 1 comments

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.

bzczb avatar Jan 13 '24 04:01 bzczb