typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
I recently tried to create my own stubs for Python 3.14's `Template` and `Interpolation` types, but it seems that is currently not possible. I waited a while and searched a...
Resolves #14881.
The [`pyqtgraph`](https://github.com/pyqtgraph/pyqtgraph) library has some dynamically inherited methods for some classes, which make my linter and type checker mad. For example, the `GraphicsLayoutWidget` is a `PyQt` widget, which has a...
The typing for `converter` [here](https://github.com/python/typeshed/blob/main/stdlib/logging/__init__.pyi#L270) is as follows: ```python converter: Callable[[float | None], struct_time] ``` And the typing for `time.gmtime`/`time.localtime` [here](https://github.com/python/typeshed/blob/main/stdlib/time.pyi#L72-L73) is: ```python def gmtime(seconds: float | None = None,...
I'm working on adding `engineio` to typeshed, and in its source code there is a file which imports from `eventlet` without a guard - https://github.com/miguelgrinberg/python-engineio/blob/main/src/engineio/async_drivers/eventlet.py#L1-L3. the guard is in another...
``` shell > uv run --with pyright pyright .\dict-none-key.py e:\1work\CFF\dict-none-key.py e:\1work\CFF\dict-none-key.py:4:12 - error: Argument of type "int | None" cannot be assigned to parameter "key" of type "int" in function...
I have added five annotation in Authlib Not sure how to annotate returning request function of AsyncOAuth1Mixin class It seem returning Response object from request library. I am not sure...
I'm using networkx to implement NUMA affinity maps in a system management control plane. Recently I added `types-networkx` and it brought `numpy` dependency as well, breaking some of our CI...