pypi flake8-pyi 22.11.0

latest releases: 24.6.0, 24.4.1, 24.4.0...
22 months ago

Bugfixes:

  • Specify encoding when opening files. Prevents UnicodeDecodeError on Windows
    when the file contains non-CP1252 characters.
    Contributed by Avasam.
  • Significant changes have been made to the Y041 check. Previously, Y041 flagged
    "redundant numeric unions" (e.g. float | int, complex | float or complex | int)
    in all contexts outside of type aliases. This was incorrect. PEP 484 only
    specifies that type checkers should treat int as an implicit subtype of
    float in the specific context of parameter annotations for functions and
    methods. Y041 has therefore been revised to only emit errors on "redundant
    numeric unions" in the context of parameter annotations.

Other changes:

  • Support running with flake8 v6.

Don't miss a new flake8-pyi release

NewReleases is sending notifications on new releases.