Skip to content

Missing py.typed file in package #32

@tusharsadhwani

Description

@tusharsadhwani

Currently trying to pip install trycast and doing import trycast causes mypy to raise an error for the package:

$ cat asd.py
import trycast

$ mypy asd.py
asd.py:1: error: Cannot find implementation or library stub for module named "trycast"  [import-not-found]
asd.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

This is because type checked packages require to ship as a package, containing a blank py.typed file as per PEP 561.

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