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

More detailed `operator` annotations could be very useful (see #6448). For example, ```python def polynomial_derivative(coefficients: Sequence[float]) -> list[float] / list[str]: """Compute the first derivative of a polynomial. f(x) = x³...

docs: src: https://github.com/python/cpython/blob/77cb39e0c7ef606ef68a0e09fd7c8c9c360f97f1/Lib/enum.py#L1428

docs: https://docs.python.org/3/library/ctypes.html#ctypes.CField

This issue is a followup to the following issue: https://github.com/microsoft/pylance-release/issues/3598 Here's the code that is wrongly annotated: ```python test_list: list[tuple[int, str]] = [(1, 'testa'), (2, 'testb')] a: tuple[int] b: tuple[str]...

The callback's return value is ignored. Use `object` instead of `Any` to indicate this per current typing best practices.

Checked against the implementation to see when `SupportsGetItem` wasn't enough. Will also reduce changes from #14038 CC @darabos since you added most of these in #13458 . Feel free to...

The type shed https://github.com/python/typeshed/blob/main/stdlib/asyncio/taskgroups.pyi on line 25 is missing eager_start and kwargs, should read: ```python def create_task(self, coro: _CoroutineLike[_T], *, name: str | None = None, context: Context | None...

`paths` accepts a dict of output paths (keys: 'home', 'temp', and OUTTMPL_TYPES keys). Typing it as `Mapping[str, str] | None` matches runtime behavior and avoids false positives when passing a...

Calling `int()` and `str()` with no arguments returns `0` and `""` respectively, likewise for `bool() == False` and `bytes() == b""`. But to actually call these constructors without arguments is...

stubs: improvement