Mypy stubs for a variety of libraries. Provided as a set of PEP 561 compatible packages.
Simply add this package as a dependency.
- Be sure to bump the version, otherwise dependents may not actually re-install
- Be sure to add new stub packages (dirs in
./src
) to thepackages
list inpyproject.toml
Poetry has some bad ergonomics (read: bugs) around this. Workarounds are noted.
- In the other project, update the dependency to e.g.
{path="../mypy-stubs", develop = true}
- Due to bugs, it may be necessary to uninstall the existing package with e.g.
poetry run pip uninstall typeshed_vts
- Due to bugs, it may be necessary to remove all the
*-stubs
entries inpackages
in this project’spyproject.toml
- In the other project, update packages e.g.
poetry update typeshed_vts
Some types have additional constructs added to them that are instead part of the typing_vts
package.
typing_vts.Context
is an Airflow Context
To avoid errors, the Shapely types use NewType for X
, Y
, and Z
parameters. However, these don’t actually exist in Shapely. Instead, import them like:
from typeshed_vts.shapely import X, Y, Z