Skip to content

2.3.0

Compare
Choose a tag to compare
@KotlinIsland KotlinIsland released this 08 Dec 12:13
· 654 commits to master since this release

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 casts 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)

Fixes

  • Render star args in error messages properly (#551)
  • The first argument to cast is analyzed as evaluated (#564)
  • Decorated functions that return None correctly warn when used (#572)
  • Some impossible type-guards were not reporting an error (#553)