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

A while ago I was toying with the idea of using multiprocessing for a long-running task, and got annoyed that I could not specify a type for my interfacing pipes....

implementation is in sre\_constants / re.\_constants, but it sets it's \_\_module\_\_ to re

Well, I got a lukewarm to positive reaction from https://github.com/python/typeshed/issues/11141, about what to do when c-implemented classes claim their __module__ is the non-private one. So here's an MR to re-organize...

This improves fidelity of naming and inheritance on 3.11+ Nothing we can do for 3.10 and lower, but this doesn't make them any worse. related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141

This matches the name reported by the class at runtime. related to https://github.com/python/typeshed/issues/11141

Just a random thought: When we add classes or type aliases to stubs that aren't available at runtime, but could be useful for users as well (by using `if TYPE_CHECKING:`),...

project-discussion

I've just added types to the common dictionary used throughout my codebase. But now my `assertDictEqual` gives a type error: > Expected type 'Mapping[Any, object]', got 'MyDictTypeName' instead What's the...

Second part of the gevent changes, that cannot be merged yet. Requires `TypeVarTuple` in a generic class to stop crashing pytype. --- Deferral reason: https://github.com/google/pytype/issues/1525

status: deferred

Another place where I previously used `ParamSpec` as a band aid solution. Requires `TypeVarTuple` in a generic class to stop crashing pytype. --- Deferral reason: https://github.com/google/pytype/issues/1525

status: deferred

Bring openpyxl stubs at least up to par with https://github.com/microsoft/python-type-stubs/tree/main/openpyxl Add class variable types and descriptors for affected classes. For a bit of context: "descriptor" types are assigned to class...

status: DO NOT MERGE