pantsbuild.pants
missing top-level __init__.py
causes type checkers to ignore the py.typed
marker
#16359
Labels
pantsbuild.pants
missing top-level __init__.py
causes type checkers to ignore the py.typed
marker
#16359
Describe the bug
When importing anything from
pantsbuild.pants
while using strict type checking, an error is reported claiming that the package is missing type stubs. The package is missing a top level__init__.py
file, causing type checkers to interpret each package insidepants build.pants
as wholly separate and requiring their ownpy.typed
files. This was confirmed with both MyPy and Pyright.Pants version
pantsbuild.pants==2.12.1rc2
The text was updated successfully, but these errors were encountered: