typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Collection of library stubs for Python, with static types

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

[`list.index`](https://github.com/python/typeshed/blob/35064a7f759facd7c3787ab6095964008f97d873/stdlib/builtins.pyi#L797) and [`list.count`](https://github.com/python/typeshed/blob/35064a7f759facd7c3787ab6095964008f97d873/stdlib/builtins.pyi#L798) currently only accepts values of the element type and [`Sequence.index`](https://github.com/python/typeshed/blob/35064a7f759facd7c3787ab6095964008f97d873/stdlib/typing.pyi#L328) and [`Sequence.count`](https://github.com/python/typeshed/blob/35064a7f759facd7c3787ab6095964008f97d873/stdlib/typing.pyi#L329) use `Any` for the type of the argument. In my opinion all of these functions...

project: infrastructure

`mypy_test.py` has two command-line arguments that I find somewhat useless: `filter` and `exclude`. (It looks like they've stayed more-or-less the same since the script's inception 7 years ago.) I'd like...

project

According to https://github.com/psf/requests/blob/2d5517682b3b38547634d153cea43d48fbc8cdb5/requests/models.py#L170 It should be possible to provide `files={"fieldname": ("filename", [bytes-object])}`, but since the last update of mypy this fails with ``` packet_analyser/daemon/uploader.py:78: error: Argument "files" to "post" has...

In https://github.com/python/typeshed/pull/4989 the return types of the pipeline methods were changed so that they would all return pipeline instances, but that's not always correct. If the pipeline is watching keys...

Example: `stubs/paramiko/paramiko/kex_ecdh_nist.pyi` contains imports from `cryptography`, but pyright can't find `cryptograpy`, probably because it's "hidden" in `stubs/cryptography`. Cc @erictraut and @jakebailey: Do you have any ideas how we could fix...

project

At the moment, whenever there is change to typeshed, we test all stdlib and third-party packages in the same testing environment, using the `--custom-typeshed-dir` so that all packages can see...

project

Here's a minimal reproducer: ```python from __future__ import annotations from functools import partialmethod class A: def my_add(self, other: A, reverse: bool) -> A: return self __add__ = partialmethod(my_add, reverse=False) a...

type-false-positive

I got a new regression from the latest release on a real project: https://github.com/wemake-services/wemake-python-styleguide/blob/master/wemake_python_styleguide/logic/arguments/function_args.py#L125-L126 Error: ``` wemake_python_styleguide/logic/arguments/function_args.py:126: error: Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str"...

type-false-positive

Our `CONTRIBUTING.md` guide says that [all names in `__all__`](https://github.com/python/typeshed/blob/master/CONTRIBUTING.md#what-to-include) should be included. But, should `__all__` itself be defined? I've seen that some modules do have `__all__` inside. Some - don't....

docs

Many of the core stdlib stubs, including `builtins.pyi` import symbols from `typing_extensions`. The `typing_extensions.pyi` stub is now part of the stdlib stubs, but for a short period of time after...

project