mypy
mypy copied to clipboard
Optional static typing for Python
Refs https://github.com/python/mypy/pull/9314 Closes https://github.com/python/mypy/issues/11884
Closes #11049
This is almost a complete rewrite of inline `NamedTuple` and `namedtuple` semantic analyzer. Changelog: 1. `NamedTuple` now supports `**kwargs` as it should 2. `NamedTuple` and `namedtuple` now have better validation...
Right now it uses `ast` to tell which values are non unique. It does not support function that return `Literal` values, `Final` constants, etc. But, it works! After #11247 is...
I am also testing how new `mypy_primer` and `mypy_comment` actions work: https://github.com/python/mypy/pull/12125 I expect "No change" comment to appear. Closes https://github.com/python/mypy/issues/11098
Closes https://github.com/python/mypy/issues/12137
I am planning to make a 0.970 release around mid July (or Jukka may overtake at some point). Please post here any issues you'd like to see fixed in the...
Unfortunately, a number of tests fail. Please help fixing them :-) Especially the ones to do with cache inconsistencies... There's at least one known bug here: #7276
**Bug Report** Mypy fails to deduce generic type if it has been previously deduced as `` **To Reproduce** Minimal example to reproduce ```python from typing import Callable, TypeVar, Generic T...
Fixes #12494. ### Description At runtime, most objects in an enum class statement are automatically converted by the enum module into members of the enumeration. However, if an object has...