Skip to content

Error with mypy when importing #119

@nvitucci

Description

@nvitucci

If I run mypy on a module that includes the library with import railroad, I get the following error:

mymodule.py:7: error: Skipping analyzing "railroad": module is installed, but missing library stubs or py.typed marker  [import-untyped]
mymodule.py:7: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

I could ignore it, but I'd prefer not to, given that the library already includes type information.

It seems that py.typed is not included in setup.py. Could adding it be enough?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions