-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
project: policyOrganization of the typeshed projectOrganization of the typeshed project
Description
This has been briefly discussed before, but I think it would be a good idea if we started distributing the stdlib types in a separate package types-stdlib, similar to third-party packages:
- Type checkers could optionally depend on (a specific version of) that package, instead of shipping their own copy, reducing coupling and arguably improving maintainability.
- Third-party stubs could require a minimum version of the
types-stdlibpackage, for example if they are relying on_typeshedfeatures or for cases like Add setuptools stubs #5762. Type checkers that opt to distribute a copy of the stdlib, could warn if incompatible stubs are used.
Technical considerations:
- The versioning scheme would be similar to third-party stubs, e.g.
types-stdlib 3.10.X, whereXis incremented automatically. We should probably increment the version number as soon as the first beta is released and we are reasonably sure we have added all new/changed API. - The stubs would be installed into a special directory, for example
stdlib, or even a non-importable name liketypes-stdlib(so we'd have stubsstdlib/sys.pyietc.) so that they are only used by type checkers that support this package and don't interfere.
gruebel, Akuli and The-Compiler
Metadata
Metadata
Assignees
Labels
project: policyOrganization of the typeshed projectOrganization of the typeshed project