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

Currently, tkinter uses a hack to mark classes compatible with the `image` parameter: https://github.com/python/typeshed/blob/130a04905c0cab48604ac7be1f3d18ce96567c68/stdlib/tkinter/__init__.pyi#L3276-L3280 Classes implementing this interface are expected to derive from this stub-only class (or one of its...

topic: tkinter

Currently the type hints for `worksheet.rows` returns `Cell` objects. However, opening a workbook in readonly mode results in `ReadOnlyCell` or `EmptyCell` objects being returned. ```py >>> workbook = openpyxl_excel_reader.load_workbook(file, read_only=True)...

Runs listed here: https://github.com/python/typeshed/actions/workflows/daily.yml

help wanted

The `builtins.reversed.__new__` signature is currently annotated like `(Reversible[T] | SupportsLenAndGetItem[T]) -> Iterator[T]`: https://github.com/python/typeshed/blob/3d26992d1562a5175fb8fd91ca63817e55feee56/stdlib/builtins.pyi#L1639-L1646 It has two problems: ## argument of type `SupportsLenAndGetItem[T]` This should return a `reversed[T]` instance (i.e. `Self`),...

I added stubs for nanoleafapi (see [on PyPi](https://pypi.org/project/nanoleafapi/) and [on Github](https://github.com/MylesMor/nanoleafapi). I generated the stubs as indicated in the contribution guide, and then clarified some types. `Incomplete` is still used...

I think that we should add a few issue templates to typeshed to guide contributors: * Stub request – basically to steer contributors away from opening those. I.e. preferable stubs...

project: policy

In Twisted, the Deferred class has set [`__await__ = __iter__`](https://github.com/twisted/twisted/blob/2039f33e94348963cf0e0b5e1172d035351b6140/src/twisted/internet/defer.py#L920), where [`__iter__` is typed thusly](https://github.com/twisted/twisted/blob/2039f33e94348963cf0e0b5e1172d035351b6140/src/twisted/internet/defer.py#L894): ```python def __iter__(self) -> "Deferred[_DeferredResultT]": ``` Deferred, insofar as it has an `__iter__` method, is...

stubs: false positive
status: deferred

If `policy.default` is set, then methods like `email.message_from_file` will return `EmailMessage` rather than just `Message`

stubs: false positive

@JelleZijlstra, @srittau thanks for all your help with the docutils type stubs. The point of all these PRs is facilitate migrating the venerable `Sphinx` project from [docutils-stubs]() to types-docutils. There's...