4 ms·
Lots of code in the stdlib does not have type annotations. Though I think most popular modules in the std either are annotated or have stubs somewhere.
by RGBCube 3y ago
Lots of code in the stdlib does not have type annotations. Though I think most popular modules in the std either are annotated or have stubs somewhere.
- maleldil 3y agoI know, but I expected that to be restricted only to older modules. I don't expect them to annotate all existing modules. I don't see why they would introduce _new_ code without annotating it, when that's clearly the trend for 3rd party libraries. From a quick look, it doesn't seem like it would be difficult to type either.
- telotortium 3y agoMaybe submit a patch?
- extasia 3y agoThe standard library has type hints in the "typeshed" github repo. Please do not submit PRs to cpython to add type hints (I made this error before too:))
- RGBCube 3y agoIsn't the change for the CLI? That's not accessible from scripts, so that may be why. Though, I agree that typing everything is good. Especially when combined with a good typechecker like pyright.