typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
I played around with the new colorful types and there is a interesting problem. Colorful takes full advantage of `__getattr__` and im a bit out of ideas how to type...
We have a few data-only packages (most recently tzdata) or calver packages where the API rarely changes (regex). I suggest we allow `*` as `version` for third-party packages. This will...
At Dropbox we are currently debating what to do with the deprecation of `datetime.utcnow` from cpython upstream. This deprecation is problematic because adjusting a single datetime to timezone-aware breaks its...
Source: https://github.com/python/cpython/tree/main/Lib/multiprocessing
Part of #7580
Part of #7580
Python 3.9 reached its end-of-life phase on 2025-10-31 ([PEP 596](https://peps.python.org/pep-0596/#lifespan)). ## How to remove support ### February 2026 * [ ] Update the documentation. * [ ] Update the `oldest_supported_python`...
Part of #7580
[Currently](https://github.com/python/typeshed/blob/main/stubs/pexpect/pexpect/popen_spawn.pyi#L20) the hint says that `env` is `os._Environ[str] | None`, but in practice it's not as specific. It's passed unmodified to `subprocess.Popen`, so maybe it should simply be `subprocess._ENV` if...