pypi flake8-pyi 22.10.0

latest releases: 24.4.1, 24.4.0, 24.3.1...
19 months ago

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.

Don't miss a new flake8-pyi release

NewReleases is sending notifications on new releases.