Skip to content

22.4.0

Compare
Choose a tag to compare
@AlexWaygood AlexWaygood released this 16 Apr 23:33
326f69a

Features:

  • Introduce Y036 (check for badly defined __exit__ and __aexit__ methods).
  • Introduce Y037 (Use PEP 604 syntax instead of typing.Union and typing.Optional).
    Contributed by Oleg Höfling.

Behaviour changes:

  • Expand Y035 to cover __match_args__ inside class definitions, as well as __all__
    in the global scope.

Bugfixes:

  • Improve Y026 check (regarding typing.TypeAlias) to reduce false-positive errors
    emitted when the plugin encountered variable aliases in a stub file.