typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
Mainly doing this out of curiosity to see the primer hits. EDIT: Would close #8647.
 The signature of `Rational.__truediv__` is marked as the following:  First of, `_ComplexLike` sounds like it should be `numbers.Complex`. But second, the signature should be more refined : -...
Openpyxl type-hinting Issue Worksheet's `row_dimensions` raises a Warning when I put an integer in it (for the index of the row to change the height of) although it works (height...
See e.g. the ElementTree unit tests: https://github.com/python/cpython/blob/3.12/Lib/test/test_xml_etree.py#L1195 I guess this is fairly obscure functionality. The documentation does describe the QName class, but it doesn't say much more than the bare...
You might be interested in this thread: https://mail.python.org/archives/list/[email protected]/thread/QKJWPZ6XULFWNRFZYNTXXDC26UVQPFNG/#QKJWPZ6XULFWNRFZYNTXXDC26UVQPFNG
I'm not sure if this is an issue with the type annotation for `itemgetter` or `SupportsGetItem`. `SupportsGetItem` requires defining `__contains__`. https://github.com/python/typeshed/blob/7ed91bc2e77ec18d28307dc6086a778ecc9c7bb3/stdlib/_typeshed/__init__.pyi#L156 This is surprising to me since I'd expect this...
Cf. #10762
For some time now we've used pyright's stricter configuration to prevent code quality regressions. Unless a stubs package is mentioned in the config file, it's expected to have annotations for...
Thanks to typeshed-stats (#9386), I was able to make the following list of stubs majorly using `Any`, indicating that they've likely not been switched over to `Incomplete` yet. Ordered by...
Release: https://pypi.org/pypi/redis/5.0.0 Homepage: https://github.com/redis/redis-py Repository: https://github.com/redis/redis-py Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/redis Changelog: https://github.com/redis/redis-py/releases Diff: https://github.com/redis/redis-py/compare/v4.6.0...v5.0.0