forked from pool/python-flake8-pyi
7b92b6e1ec9318ee7f8f788659b8c588d5faa0f922b7fac3d3c8d6d46b646ed5
- Remove python_module macro definition
- Update to 22.10.0:
# 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.
- 22.8.2:
# New error codes:
- Y047: Detect unused TypeAlias declarations.
- Y049: Detect unused TypedDict definitions.
- Y050: Prefer typing_extensions.Never for argument annotations over
typing.NoReturn.
- Y051: Detect redundant unions between Literal types and builtin supertypes
(e.g. Literal["foo"] | str, or Literal[5] | int).
# Other enhancements:
- Support mypy_extensions.TypedDict.
- 22.8.1:
- Add support for flake8 >= 5.0.0.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flake8-pyi?expand=0&rev=13
Description
No description provided
Languages
RPM Spec
100%