Skip to content

mypy error: Skipping analyzing "permit": module is installed, but missing library stubs or py.typed marker [import-untyped] #116

@coactive-jeffrey

Description

@coactive-jeffrey

When using mypy to type check Python code that uses the permit library, I see the following error:

$ mypy .
mymodule.py:9: error: Skipping analyzing "permit": module is installed, but missing library stubs or py.typed marker  [import-untyped]
mymodule.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 10 source files)
error: Recipe `types` failed on line 58 with exit code 1

Creating PEP 561 compatible packages:

If you would like to publish a library package to a package repository yourself (e.g. on PyPI) for either internal or external use in type checking, packages that supply type information via type comments or annotations in the code should put a py.typed file in their package directory.

Environment

$ python --version
Python 3.12.10
$ mypy --version
mypy 1.15.0 (compiled: yes)
$ pip list | grep permit
permit                    2.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions