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

Account for new 3.13 `doctest` changes.

The types for in `main/stubs/peewee/peewee.pyi` are incorrect for `_HashableSource` and `ColumnBase`, specifically for the functions `__eq__` and `__ne__` the return types are set as `bool` when they should be peewee's...

This has been [deprecated since 3.10](https://docs.python.org/3/library/zipimport.html#zipimport.zipimporter.load_module), and I'm quite sure that it's been causing problems for the `exec_module` migration. See my comment [here](https://github.com/python/cpython/issues/125746#issuecomment-2425030377).

Hi. I generated stub files for the [`netifaces`](https://pypi.org/project/netifaces/) library. Unfortunately, this library is no longer maintained (although still working well). For this reason, I would like to submit type hints...

This is the last batch of them; I saved the builtins for last. previous: https://github.com/python/typeshed/pull/12813 https://github.com/python/typeshed/pull/12814 https://github.com/python/typeshed/pull/12816 https://github.com/python/typeshed/pull/12827 The unrelated extra newline in this MR was black's idea, not mine,...

I noticed that there's a special type alias [**`MaybeNone`**](https://github.com/python/typeshed/blob/6feca188689e14cdacd8dbf8bc9cf0635993027a/stdlib/_typeshed/__init__.pyi#L58) that represents this specific intent: > **We didn't dare to change the type to `X | None` so instead we changed...

The `clone()` method of `email.policy.EmailPolicy` accepts keyword arguments for the properties that the class adds to `Policy`, but because there is no declaration of `clone()` [under `EmailPolicy` in `typeshed/std/email/policy.py`](https://github.com/python/typeshed/blob/de4842db26886ff5e901f11df5a7253cb5f84c96/stdlib/email/policy.pyi#L11), code...

stubs: false positive
help wanted

This MR breaks out _frozen_importlib_external (which is the same thing as importlib._bootstrap_external) and _frozen_importlib (which is the same thing as importlib._bootstrap). related to https://github.com/python/typeshed/issues/3968 I waffled on just adding `importlib._bootstrap`...