-
Notifications
You must be signed in to change notification settings - Fork 2.4k
mypy says "no type hints or library stubs" although it parses package's .pyi #2194
Copy link
Copy link
Closed
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: win10
- Poetry version: 1.0.5
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/yanoom/b0a757aa512e6cb0a122ca3cfbc7f416
Issue
We are in the process of releasing our library, called "Pyctuator".
I successfully created stubs for the package using stubgen.
I added the MYPYPATH environment variable with the location of the previously created "stub output folder" for mypy to find the stubs.
I use poetry run mypy on an example application that uses our new package:
I see that mypy is parsing the desired pyctuator.pyi

But still fails in the end stating that no type hints or library stubs have been found:

Your assistance is highly appreciated- thanks!
:)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected