typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
~~We currently only have test cases for our stdlib stubs, and don't currently have the infrastructure set up to allow us to add test cases for any of our third-party...
Currently, we have mypy's `--warn-unused-ignore` setting enabled for the whole `test_cases` directory, but for pyright, we have to manually add `# pyright: reportUnnecessaryTypeIgnoreComment=true` at the top of each file in...
Add the initial stubs for `lief`, generated by `python3 scripts/create_baseline_stubs.py lief` Fix https://github.com/lief-project/LIEF/issues/650 These errors should be fixed before PR get merged. ```log Running black: black stubs/lief error: cannot format...
At the moment, `collections.abc` types are strict aliases for their typing counterparts. This can make it difficult for intellisense providers to distinguish them and suggest the correct one. @erictraut mentioned...
Release: https://pypi.org/project/stripe/4.0.2/ Homepage: https://github.com/stripe/stripe-python Changelog: https://github.com/stripe/stripe-python/blob/master/CHANGELOG.md If stubtest fails for this PR: - Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR) - Fix...
To simplify adoption of type hints in upstream repositories, this issue looks to better understand how maintainers upstream of typeshed can merge existing type stubs into their codebase. In order...
X-Ref: https://github.com/python/typeshed/pull/8457#discussion_r935592063 This pull request adds a new key to the METADATA.toml file, under the `tool.stubtest` key, named `extras_dependencies`. This key is to allow the use of extras when running...
I've reached out to psf/requests via their issue tracker (psf/requests#6211) to begin exploring why various projects aren't merging the type stubs from typeshed. From requests, they've said that previous reviews...
Closes #8437
A followup to the issue presented in #6953, I'm running into mypy errors when implementing a cache using the mechanism as defined in the cachetools documentation. [Cachetools documentation for TRLUCache](https://cachetools.readthedocs.io/en/latest/#cachetools.TLRUCache)...