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
-
For example, there are 2 packages in the same namespace:
usage:
somenamespace-foo
provides typing annotations butsomenamespace-bar
does not.How can I add typing stubs for
somenamespace-bar
without 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-foo
andsomenamespace-bar
are 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