typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Collection of library stubs for Python, with static types

Results 615 typeshed issues
Sort by recently updated
recently updated
newest added

#11755 changed the signature of `asyncio.StreamReader.readuntil` to make the `separator` argument take an internal type `_ReaduntilBuffer` that just has `...` for its definition. This is confusing because inside the python...

topic: asyncio

This will solve a lot of mypy `attr-defined` and pyright `reportAttributeAccessIssue` in setuptools (unfortunately it won't show up in mypy_primer because these codes are disabled)

In reference to the following two function declarations: https://github.com/python/typeshed/blob/fa70187245751c6fd4d057534af7f9ae3e74a25f/stubs/google-cloud-ndb/google/cloud/ndb/model.pyi#L419 https://github.com/python/typeshed/blob/fa70187245751c6fd4d057534af7f9ae3e74a25f/stubs/google-cloud-ndb/google/cloud/ndb/model.pyi#L437 The type of the `keys` parameter should be `Sequence[key_module.Key]`, not `Sequence[type[key_module.Key]]`.

The documentation says: self.transform = transform """The `docutils.transforms.Transform` class implementing the pending operation."""

The current overloads for MutableMapping.update() allow the use of keyword arguments even if the key type isn't str. I think it's possible to put a type hint on self so...

stubs: improvement

Not sure if we still need `LockType` when we have `threading.Lock`.. which is identical :thinking:

Using `hashlib.file_digest` with a file object obtained via `pathlib.Path.open` failed to typecheck with a protocol compatibility error: ``` src/create_bundles.py:223: error: Argument 1 to "file_digest" has incompatible type "FileIO"; expected "_BytesIOLike...

stubs: false positive
topic: io