typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
Hi, I've created a stubs package for the well-known Django Channels library in PR https://github.com/python/typeshed/pull/13939. It has been open for a while now. I've received some feedback and updated the...
This PR fix [issue 14168](https://github.com/python/typeshed/issues/14168) with stdlib/TarFile (name=None, fileobj=None case). This pr add overriding typing for `__init__`, and other methods (open and etc).
Fixes #12562, alternative to #12573. Introduces a new protocol in `_typeshed/__init__.pyi` ```python class SupportsBool(Protocol): def __bool__(self) -> bool: ... ``` Changes `SupportsDunderLT` and variants to return `SupportsBool` instead of `bool`....
Should fix following mypy and pyright error: ``` src/main.py:7: error: Too few arguments [call-arg] src/main.py:7: note: "not_in" is considered instance variable, to make it class variable use ClassVar[...] src/main.py:7: error:...
typeshed currently hosts stubs for ujson: https://github.com/python/typeshed/tree/main/stubs/ujson I asked ujson if they'd be happy to inline the stubs, and it looks like they would! https://github.com/ultrajson/ultrajson/issues/671 I've given this a go...