typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
Release: https://pypi.org/pypi/protobuf/6.31.1 Homepage: https://developers.google.com/protocol-buffers/ Repository: https://github.com/protocolbuffers/protobuf Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/protobuf If stubtest fails for this PR: - Leave this PR open (as a reminder, and to prevent stubsabot from opening another...
The new `supported_platforms` and `ci_platforms` keys allow better control over the platforms stubtest is run on locally and in CI. Rename `stubtest_third_party.py` command line option `--supported-platforms-only` to `--ci-platforms-only` to match...
In Python 3.12 and later, passing a bytearray as the `filename` argument to `compile()` is no longer allowed. This commit adds a mypy plugin that checks for this specific misuse...
Link: https://github.com/python/typeshed/actions/runs/15279387776/job/42974250437 ``` testing geopandas (25 files)... failure (exit code 1) stubs/geopandas/geopandas/geoseries.pyi:152: error: Cannot override final attribute "take" (previously declared in base class "NDFrame") [misc] stubs/geopandas/geopandas/geoseries.pyi:152: error: Argument 2 of...
Right now `TarFile.__init__` is defined as: https://github.com/python/typeshed/blob/c7e29eccd9759411c0f46580e20727038668b320/stdlib/tarfile.pyi#L128-L132 Which is not exactly right, because there's a case when `name` and `fileobj` are both `None` at the same time. And this will...
This PR merges the stubs from https://github.com/microsoft/python-type-stubs/tree/main/stubs/networkx so that removing them from there produce no regression for Pylance users. I didn't make much effort in completing annotations other than validating...
Release: https://pypi.org/pypi/Authlib/1.6.0 Repository: https://github.com/lepture/authlib Typeshed stubs: https://github.com/python/typeshed/tree/main/stubs/Authlib Diff: https://github.com/lepture/authlib/compare/v1.5.0...v1.6.0 Stubsabot analysis of the diff between the two releases: - 7 public Python files have been added: `authlib/oauth2/rfc6749/hooks.py`, `authlib/oauth2/rfc9101/__init__.py`, `authlib/oauth2/rfc9101/authorization_server.py`, `authlib/oauth2/rfc9101/discovery.py`,...
This started as an experiment/demonstration for https://github.com/auth0/auth0-python/issues/615 & https://github.com/auth0/auth0-python/pull/678#issuecomment-2798399228 . But I think it's actually good enough to be considered seriously. With these changes, the stubs are a lot closer...