Skip to content

22.10.0

Compare
Choose a tag to compare
@AlexWaygood AlexWaygood released this 06 Oct 23:31
ec0bb4b

Bugfixes:

  • Do not emit Y020 for empty strings. Y020 concerns "quoted annotations",
    but an empty string can never be a quoted annotation.
  • Add special-casing so that Y020 is not emitted for __slots__ definitions
    inside class blocks.
  • Expand Y035 to cover __slots__ definitions as well as __match_args__ and
    __all__ definitions.
  • Expand Y015 so that errors are emitted for assignments to negative numbers.

Other changes:

  • Since v22.8.1, flake8-pyi has emitted a FutureWarning if run with flake8<5,
    warning that the plugin would soon become incompatible with flake8<5. Due to
    some issues that mean that some users are unable to upgrade to flake8>=5,
    however, flake8-pyi no longer intends to remove support for running the
    plugin with flake8<5 before Python 3.7 has reached end-of-life. As such, the
    FutureWarning is no longer emitted.