Replies: 1 comment 1 reply
-
|
It looks like you're very close to getting it to work. You simply need to add another
If I manually add that missing marker file, mypy no longer emits the error you're seeing. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, there are 2 packages in the same namespace:
usage:
somenamespace-fooprovides typing annotations butsomenamespace-bardoes not.How can I add typing stubs for
somenamespace-barwithout influencingsomenamespace-foo?I tried but doesnot work:
bar-stubs/setup.py:
check with mypy:
full example here: https://github.com/lexdene/python-typing-stubs-for-namespace-package
And you can see mypy error message inside github actions.
Update:
In the reality case, both
somenamespace-fooandsomenamespace-barare not maintained by me.I cannot update their code.
The only one I can control is
somenamespace-bar-stubs.Beta Was this translation helpful? Give feedback.
All reactions