typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Collection of library stubs for Python, with static types

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

[Currently](https://github.com/python/typeshed/blob/e2ce7c6344dc9544b3555a4b81aff5bfadc1430c/stdlib/functools.pyi#L75), functools.partial's `__call__` method takes `*args: Any, **kwargs: Any` and returns `_T` (a TypeVar for the return type of the callable the partial is wrapping). This is decent, but matching...

status: deferred

This is a port of https://github.com/python/typing/issues/159, which was closed as being out of scope, with https://github.com/srittau suggesting it maybe be more suitable for [typeshed](https://github.com/python/typeshed) instead. It would be useful to...

status: deferred

This PR adds stubs for sortedcontainers (closes #8574).

Hello! I am interested in adding stubs for [sortedcontainers](https://github.com/grantjenks/python-sortedcontainers) to typeshed. The maintainer, @grantjenks, [supports this initiative](https://github.com/grantjenks/python-sortedcontainers/issues/68#issuecomment-904940676). Are there any concerns? Otherwise I would start drafting a PR.

type-stubs-request

ref: python-jsonschema/jsonschema#997 I expected the following code to work when it comes to typing ```python from typing import Any, Mapping import jsonschema store: dict[str, Mapping[str, Any]] = {} jsonschema.RefResolver( base_uri=f"file://mypath.json",...

stubs: false positive
help wanted

* [ ] mypy (https://github.com/python/mypy/issues/12280) * [ ] pytype * [x] pyright * [ ] pyre * [ ] PyCharm (nice to have, but not required)

feature-tracker

After running `scripts/create_baseline_stubs.py`, we are informed of the following ``` Suggested next steps: 1. Manually review the generated stubs in {stub_dir} 2. Run "MYPYPATH={stub_dir} python3 -m mypy.stubtest {package}" to check...

project

Today I've noticed that `copy.deepcopy` requires `dict` type as `memo=` argument: https://github.com/python/cpython/blob/main/Lib/copy.py But, this is actually not quite true, `MutableMapping` works just fine, because only these methods are used in...

question

This is an issue I'm having while adding D3DShot #8652 and PyAutoGUI #8654 stubs. Some modules are highly dependent on the OS, and as such, I have to add them...

project