2.3.0
Based on mypy 1.7.1
Added
- f-string format specs are checked (#543)
- Narrow type on initial assignment (#547)
- Annotations in function bodies are not analyzed as evaluated (#564)
- Invalid
cast
s show an error (#573) - Argument names are validated for subtypes (#562)
- Type-guards narrow in the negative (#553)
- Conditional types for asymmetric type-guards (#553)
- Static conditions report an error (#553)
- Regex groups are special-cased (#531)
- f-strings will show an error if the value doesn't define a stringification (#565)
Enhancements
- Show 'narrowed from' in
reveal_type
(#550) --color-output
is enabled by default (#531)--ide
will disable color-output (#531)- Output lines won't wrap if not connected to a terminal (#531)