Skip to content

Bump flake8-pyi from 20.10.0 to 22.5.0#725

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

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github May 10, 2022

Bumps flake8-pyi from 20.10.0 to 22.5.0.

Release notes

Sourced from flake8-pyi's releases.

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:

  • Expand Y035 to cover __match_args__ inside class definitions, as well as __all__ in the global scope.

Bugfixes:

  • Improve Y026 check (regarding typing.TypeAlias) to reduce false-positive errors emitted when the plugin encountered variable aliases in a stub file.

22.3.0

Bugfixes:

  • fix bug where incorrect quoted annotations were not detected within if blocks

Behaviour changes:

  • Add special-casing so that string literals are allowed in the context of __match_args__ assignments inside a class definition.
  • Add special-casing so that arbitrary values can be assigned to a variable in a stub file if the variable is annotated with Final.

22.2.0

Bugfixes:

  • fix bugs in several error codes so that e.g. _T = typing.TypeVar("_T") is recognised as a TypeVar definition (previously only _T = TypeVar("_T") was recognised).
  • fix bug where foo = False at the module level did not trigger a Y015 error.
  • fix bug where TypeVars were erroneously flagged as unused if they were only used in a typing.Union subscript.
  • improve unclear error messages for Y022, Y023 and Y027 error codes.

... (truncated)

Changelog

Sourced from flake8-pyi's changelog.

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.

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:

  • Expand Y035 to cover __match_args__ inside class definitions, as well as __all__ in the global scope.

Bugfixes:

  • Improve Y026 check (regarding typing.TypeAlias) to reduce false-positive errors emitted when the plugin encountered variable aliases in a stub file.

22.3.0

Bugfixes:

  • fix bug where incorrect quoted annotations were not detected within if blocks

Behaviour changes:

  • Add special-casing so that string literals are allowed in the context of __match_args__ assignments inside a class definition.
  • Add special-casing so that arbitrary values can be assigned to a variable in a stub file if the variable is annotated with Final.

22.2.0

... (truncated)

Commits
  • 7489b3b Prepare for release 22.5.0 (#218)
  • e0b4932 Introduce Y040: Ban explicit inheritance from object (#217)
  • 3debb73 Minor improvements to Y029 and Y036 checks (#216)
  • 266d22a Introduce Y039: ban typing.Text (#215)
  • 25bb08b Prepare for release 22.4.1 (#214)
  • fd2bae8 Forbid imports of collections.abc aliases from typing (#213)
  • 70c143d Improve error messages for Y036 check (#212)
  • 326f69a Prepare for release 22.4.0 (#211)
  • 7b32106 README: Y026 is compatible with pytype, Y037 isn't fully compatible with mypy...
  • cc09ec1 Reduce false-positives emitted from Y026 TypeAlias check (#206)
  • 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 May 10, 2022 23:05
@dependabot dependabot bot added autosquash dependencies Pull requests that update a dependency file labels May 10, 2022
@github-actions github-actions bot enabled auto-merge (squash) May 10, 2022 23:06
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github May 19, 2022

Superseded by #727.

@dependabot dependabot bot closed this May 19, 2022
auto-merge was automatically disabled May 19, 2022 23:03

Pull request was closed

@dependabot dependabot bot deleted the dependabot/pip/flake8-pyi-22.5.0 branch May 19, 2022 23:03
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