typeshed
typeshed copied to clipboard
Collection of library stubs for Python, with static types
Pymongo's mypy tests pass with mypy==0.942 but fail with mypy==0.971 with this error: ``` test/test_bson.py: note: In member "assertInvalid" of class "TestBSON": test/test_bson.py:120: error: Argument 2 to "assertRaises" of "TestCase"...
We currently have static types for the fields of most (all?) `ast` classes, but none of these have typed constructors, e.g.: https://github.com/python/typeshed/blob/62cde013659b4714b6eefe14cecb4b6752b33570/stdlib/_ast.pyi#L79-L86 I think technically this might be because none...
### The code is correct, but fails with Mypy: ```python html_doc = """ The Dormouse's story The Dormouse's story Once upon a time there were three little sisters; and their...
Hi, I think there is a problem when using `functools.lru_cache` (and `functools.cache`). When the decorated function uses a `TypeVar` for typing arguments and return type, the wrapped function returend by...
When using auto enumeration within an `class Example(enum.Enum): X = auto()`, the invokation of `auto()` is actually constructing an instance of `enum.auto`, which just has a default constructor without any...
stubtest finds a number of issues with the existing multiprocessing stubs. PRs that work toward fixing these (if they need fixing) are welcome, even if they're small! ``` ~/dev/typeshed master...
Exploratory PR. Cf. #8286
Applying `functools.wraps` to a function returns the function unchanged, but it should instead copy the signature of the wrapped function: ```python def func(x: bool) -> str: return str(x) @wraps(func) def...
The context is I'm looking into #5768. There's a lot of logic we have that either assumes or checks that entries in "requires" are typeshed stub packages. It seems potentially...
@encukou just announced the new python organization repository policy: https://discuss.python.org/t/new-python-organization-repository-policy/17376 One of the points is that: > all repositories under python will need to require the CLA While this is...