-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Removal policy #4608
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Deleting the stubs as soon as a version with py.typed is released seems a bit extreme to me, since users may still be using older versions. I'd prefer waiting for some time. |
Sounds reasonable. What do you think is a good time? Six months? We also need to review this policy, when typeshed supports multiple versions at once. |
Six months or a year sounds reasonable, though it may also depend on individual libraries and how likely users are to use an old version. |
I am reopening this discussion due to modular typeshed and because it became relevant due to all pallets projects now shipping their own stubs. Do we still keep a package around for 6-12 months, even with modular typeshed? After all, the package is not removed from pypi, even if we remove it from the repository and is still usable indefinitely. Also I think it would be useful to create one final upload before we remove a package from the repository, where we indicate that the package is now obsolete and the upstream package ships its own stubs. |
We can now mark packages with This only leaves the question whether we should keep packages around for 6-12 months. |
Instead of a fixed time, maybe look at how popular the new version of the package is compared to older versions that lack type hints? If half (or some other amount) of all downloads is for new versions that come with type hints, then I think it's fine to delete the stubs in typeshed. As pointed out before, this shouldn't break |
For the editor case, I know it's probably going to be useful to have these stubs to support users who are still on old versions of libraries (which will likely be the case for a good while). I know the Flask stubs help current users quite a bit, and I've sent some targeted fixes to members we saw people using but were untyped. My impression is that to conform to PEP 561, type checkers are going to be ignoring stub packages / typeshed in favor of the library itself if the library claims to be |
Please note that the package won't be removed from pypi, just because it's removed from typeshed. So the package will be available indefinitely, we just can't update it anymore. |
Yes, certainly, but we vendor the typeshed repo in pyright/pylance, as the average python user isn't really expected to understand what a stub is (let alone that they need to install them). |
But, we also bundle stubs sourced from other packages, so could continue to bundle the old Flask stubs and such for a while if typeshed drops them. |
Makes sense. So let's just keep the status quo for now. |
This came up in #4606.
I think we should have a clear policy on when to remove packages from typeshed. My suggestion:
The text was updated successfully, but these errors were encountered: