mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Optional static typing for Python

Results 1055 mypy issues
Sort by recently updated
recently updated
newest added

I've seen an earlier issue on this closed (#2859) as well as a recent issue bringing up changelogs (#12210)! **Feature** Single file changelog, with changes release manager deems most significant...

feature

**Bug Report** - Generators containing the `await` keyword are considered Generator, rather than AsyncGenerator - Generator syntax does not permit `await` in a non-async function **To Reproduce** test.py: ```python import...

bug
topic-async

I played with an update of mypy from 0.931 to 0.971. The new version fails with `error: "Callable[..., bool]" has no attribute "register"` The code is written oddly because of...

bug

### Description Suggest an annotation of the form `Optional[]` when we show an error for an inferred partial `None` type (which I think should only happen when `--local-partial-types` is set)....

upnext

Refs https://github.com/python/mypy/issues/12237

deferred

Refs https://github.com/python/mypy/issues/12237

deferred

Closes https://github.com/python/mypy/issues/10342 This PR allows `__init__` and `__new__` methods to return `NoReturn`, allowing for the annotation of classes that cannot be directly initialized (_e.g._ those that are defined in C...

**Feature** ```py from __future__ import annotations from typing import TypedDict class A(TypedDict, total=False): name: str class B(TypedDict, total=False): name: str def foo(data: A | B) -> None: ... # this...

feature
topic-typed-dict