python-trio / trio-typing

Type hints for Trio and related projects
Other
27 stars 14 forks source link

[Request] Separate stubs into its own package #27

Closed nihaals closed 2 years ago

nihaals commented 4 years ago

If you are using another type checker, for example pyright, you can still benefit from having stubs but do not need the mypy plugin (or the mypy dependency) so it would be nice to have 2 separate PyPI packages, one with just the stubs and another with the mypy extension and other addons. Poetry also doesn't seem to support installing specific subpackages (although you would still have the mypy dependency)

oremanj commented 2 years ago

We no longer pull in mypy unless you use pip install trio-typing[mypy]. I think this obviates the need for separate packages?