Shoobx / mypy-zope

Plugin for mypy to support zope.interface
MIT License
38 stars 11 forks source link

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

Open bzczb opened 8 months ago

bzczb commented 8 months ago

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.

kedder commented 8 months ago

Interesting. I'll experiment with this.