typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
We have explained the Any trick to contributors and users several times, usually related to `re` stubs, but also a few times in other cases, like #8069 and https://github.com/python/typeshed/issues/10564#issuecomment-1675792312. Maybe...
Release: https://pypi.org/pypi/pexpect/4.9.0 Homepage: https://pexpect.readthedocs.io/ Repository: https://github.com/pexpect/pexpect Diff: https://github.com/pexpect/pexpect/compare/4.8.0...4.9 Stubsabot analysis of the diff between the two releases: - 4 public Python files have been added: `examples/terminal_emulation.py`, `pexpect/socket_pexpect.py`, `tests/test_socket_fd.py`, `tests/test_socket_pexpect.py`. -...
Hello, While working on the [`python3-typeshed` package for Debian](https://tracker.debian.org/typeshed) I noticed that if one installs two `types-` packages involving the same namespace, the `METADATA.toml` files of the first package will...
Refs https://github.com/python/mypy/issues/16521 Source: - 3.8: https://github.com/python/cpython/blob/3.8/Lib/typing.py#L1613 - 3.9: https://github.com/python/cpython/blob/3.9/Lib/typing.py#L1864 - 3.10: https://github.com/python/cpython/blob/3.10/Lib/typing.py#L2265 - 3.11: https://github.com/python/cpython/blob/3.11/Lib/typing.py#L2885 - 3.12: https://github.com/python/cpython/blob/3.12/Lib/typing.py#L2739
Hello there, is there a way to get to work combination of `_typeshed.wsgi` and `typing.get_type_hints` in runtime? In flask codebase there is something like ```py from __future__ import annotations import...
Release: https://pypi.org/pypi/dateparser/1.2.0 Homepage: https://github.com/scrapinghub/dateparser Repository: https://github.com/scrapinghub/dateparser Diff: https://github.com/scrapinghub/dateparser/compare/v1.1.8...v1.2.0 Stubsabot analysis of the diff between the two releases: - 2 public Python files have been added: `fuzzing/dateparser_fuzzer.py`, `fuzzing/fuzz_helpers.py`. - 0 files...
ArgParse [supports a registry feature](https://stackoverflow.com/a/19233287), where you can name a function, and then pass that name instead of the actual function for the `type` of an argument added with `add_argument`....
Initially lodged as https://github.com/python/mypy/issues/16501 Given a metaclass called Meta, mypy considers the Meta.__dict__ attribute to have type def (self: builtins.type) -> types.MappingProxyType[builtins.str, Any] when the actual type is types.MappingProxyType[builtins.str, Any]....
I do not have capacity to open a PR for this, but I would like to suggest the following improvement to `decorator.decoratorx` which type-checks fine wherever I use it: ```python...