Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bzczb opened this issue Jan 13, 2024 · 1 comment

Comments

@bzczb
Copy link

bzczb commented Jan 13, 2024

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
Copy link
Member

kedder commented Jan 14, 2024

Interesting. I'll experiment with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants