mewwts / addict

The Python Dict that's better than heroin.
MIT License
2.46k stars 132 forks source link

have stubs for minimal type annotation on addict #147

Open LuisBL opened 2 years ago

LuisBL commented 2 years ago

Today this minimal code:

$ cat /tmp/test.py
from addict import Dict

a = Dict()

can not be included in a fully typed project:

$ mypy /tmp/test.py
/tmp/test.py:1: error: Skipping analyzing "addict": module is installed, but missing library stubs or py.typed marker
/tmp/test.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)
$