Skip to content

mypy says "no type hints or library stubs" although it parses package's .pyi #2194

@yanoom

Description

@yanoom
  • 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 (-vvv option).

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
image

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

Your assistance is highly appreciated- thanks!
:)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions