Skip to content

Bump flake8-pyi from 20.10.0 to 22.7.0#748

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/flake8-pyi-22.7.0
Closed

Bump flake8-pyi from 20.10.0 to 22.7.0#748
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/flake8-pyi-22.7.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Jul 25, 2022

Bumps flake8-pyi from 20.10.0 to 22.7.0.

Release notes

Sourced from flake8-pyi's releases.

22.7.0

New error codes:

  • Introduce Y041: Ban redundant numeric unions (int | float, int | complex, float | complex).
  • Introduce Y042: Type alias names should use CamelCase rather than snake_case
  • Introduce Y043: Ban type aliases from having names ending with an uppercase "T".
  • Introduce Y044: Discourage unnecessary from __future__ import annotations import. Contributed by Torsten Wörtwein.
  • Introduce Y045: Ban returning (Async)Iterable from __(a)iter__ methods.

Other enhancements and behaviour changes:

  • Improve error message for Y026 check.
  • Expand Y026 check. Since version 22.4.0, this has only emitted an error for assignments to typing.Literal, typing.Union, and PEP 604 unions. It now also emits an error for any subscription on the right-hand side of a simple assignment, as well as for assignments to typing.Any and None.
  • Support typing_extensions.overload and typing_extensions.NamedTuple.
  • Slightly expand Y034 to cover the case where a class inheriting from (Async)Iterator returns (Async)Iterable from __(a)iter__. These classes should nearly always return Self from these methods.
  • Support Python 3.11.

22.5.1

Behaviour changes:

  • Relax Y020 check slightly, enabling the idiom __all__ += ["foo", "bar"] to be used in a stub file.

22.5.0

Features:

  • Introduce Y039: Use str instead of typing.Text for Python 3 stubs.
  • Teach the Y036 check that builtins.object (as well as the unqualified object) is acceptable as an annotation for an __(a)exit__ method argument.
  • Teach the Y029 check to emit errors for __repr__ and __str__ methods that return builtins.str (as opposed to the unqualified str).
  • Introduce Y040: Never explicitly inherit from object in Python 3 stubs.

22.4.1

Features:

  • Expand Y027 check to prohibit importing any objects from the typing module that are aliases for objects living in collections.abc (except for typing.AbstractSet, which is special-cased).
  • Introduce Y038: Use from collections.abc import Set as AbstractSet instead of from typing import AbstractSet.

Bugfixes:

  • Improve inaccurate error messages for Y036.

22.4.0

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:

... (truncated)

Changelog

Sourced from flake8-pyi's changelog.

22.7.0

New error codes:

  • Introduce Y041: Ban redundant numeric unions (int | float, int | complex, float | complex).
  • Introduce Y042: Type alias names should use CamelCase rather than snake_case
  • Introduce Y043: Ban type aliases from having names ending with an uppercase "T".
  • Introduce Y044: Discourage unnecessary from __future__ import annotations import. Contributed by Torsten Wörtwein.
  • Introduce Y045: Ban returning (Async)Iterable from __(a)iter__ methods.

Other enhancements and behaviour changes:

  • Improve error message for Y026 check.
  • Expand Y026 check. Since version 22.4.0, this has only emitted an error for assignments to typing.Literal, typing.Union, and PEP 604 unions. It now also emits an error for any subscription on the right-hand side of a simple assignment, as well as for assignments to typing.Any and None.
  • Support typing_extensions.overload and typing_extensions.NamedTuple.
  • Slightly expand Y034 to cover the case where a class inheriting from (Async)Iterator returns (Async)Iterable from __(a)iter__. These classes should nearly always return Self from these methods.
  • Support Python 3.11.

22.5.1

Behaviour changes:

  • Relax Y020 check slightly, enabling the idiom __all__ += ["foo", "bar"] to be used in a stub file.

22.5.0

Features:

  • Introduce Y039: Use str instead of typing.Text for Python 3 stubs.
  • Teach the Y036 check that builtins.object (as well as the unqualified object) is acceptable as an annotation for an __(a)exit__ method argument.
  • Teach the Y029 check to emit errors for __repr__ and __str__ methods that return builtins.str (as opposed to the unqualified str).
  • Introduce Y040: Never explicitly inherit from object in Python 3 stubs.

22.4.1

Features:

  • Expand Y027 check to prohibit importing any objects from the typing module that are aliases for objects living collections.abc (except for typing.AbstractSet, which is special-cased).
  • Introduce Y038: Use from collections.abc import Set as AbstractSet instead of from typing import AbstractSet.

Bugfixes:

  • Improve inaccurate error messages for Y036.

... (truncated)

Commits
  • c7a051a Prepare for release 22.7.0 (#249)
  • 022c9c0 Introduce Y042: type alias names should use CamelCase (#243)
  • 95675c7 Introduce Y045: Ban returning (Async)Iterable from __(a)iter__ (#248)
  • 2c4850f Introduce Y044: prevent from __future__ import annotations (#242)
  • 518b12c Upgrade black and mypy test requirements (#239)
  • 0c85b3b Y026: error for any assignment to a subscripted object (#232)
  • b2b340d type_comments.pyi: fix nit (#236)
  • 68a3962 Introduce Y043: Ban type alias names from ending in 'T' (#235)
  • 0f71d5e Support typing_extensions.overload and typing_extensions.NamedTuple (#231)
  • ccf6b05 Simplify _is_type_or_Type (#230)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from asvetlov as a code owner July 25, 2022 23:05
@dependabot dependabot bot added autosquash dependencies Pull requests that update a dependency file labels Jul 25, 2022
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Aug 2, 2022

Superseded by #755.

@dependabot dependabot bot closed this Aug 2, 2022
@dependabot dependabot bot deleted the dependabot/pip/flake8-pyi-22.7.0 branch August 2, 2022 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosquash dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants