Skip to content

Bump flake8-pyi from 20.10.0 to 22.3.0#712

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

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

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 28, 2022

Bumps flake8-pyi from 20.10.0 to 22.3.0.

Release notes

Sourced from flake8-pyi's releases.

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.

Features:

  • introduce Y032 (prefer object to Any for the second argument in __eq__ and __ne__ methods).
  • introduce Y033 (always use annotations in stubs, rather than type comments).
  • introduce Y034 (detect common errors where return types are hardcoded, but they should use TypeVars instead).
  • introduce Y035 (__all__ in a stub has the same semantics as at runtime).

22.1.0

  • extend Y001 to cover ParamSpec and TypeVarTuple in addition to TypeVar
  • detect usage of non-integer indices in sys.version_info checks
  • extend Y010 to check async functions in addition to normal functions
  • extend Y010 to cover what was previously included in Y090 (disallow assignments in __init__ methods) and Y091 (disallow raise statements). The previous checks were disabled by default.
  • introduce Y016 (duplicate union member)
  • introduce Y017 (disallows assignments with multiple targets or non-name targets)
  • introduce Y018 (detect unused TypeVars)
  • introduce Y019 (detect TypeVars that should be _typeshed.Self, but aren't)
  • introduce Y020 (never use quoted annotations in stubs)
  • introduce Y021 (docstrings should not be included in stubs)
  • introduce Y022 (prefer stdlib classes over typing aliases)
  • introduce Y023 (prefer typing over typing_extensions)
  • introduce Y024 (prefer typing.NamedTuple to collections.namedtuple)
  • introduce Y026 (require using TypeAlias for type aliases)
  • introduce Y025 (always alias collections.abc.Set)
  • introduce Y027 (Python 2-incompatible extension of Y022)
  • introduce Y028 (Use class-based syntax for NamedTuples)
  • introduce Y029 (never define __repr__ or __str__)
  • introduce Y030 (use Literal['foo', 'bar'] instead of Literal['foo'] | Literal['bar'])

... (truncated)

Changelog

Sourced from flake8-pyi's changelog.

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.

Features:

  • introduce Y032 (prefer object to Any for the second argument in __eq__ and __ne__ methods).
  • introduce Y033 (always use annotations in stubs, rather than type comments).
  • introduce Y034 (detect common errors where return types are hardcoded, but they should use TypeVars instead).
  • introduce Y035 (__all__ in a stub has the same semantics as at runtime).

22.1.0

  • extend Y001 to cover ParamSpec and TypeVarTuple in addition to TypeVar
  • detect usage of non-integer indices in sys.version_info checks
  • extend Y010 to check async functions in addition to normal functions
  • extend Y010 to cover what was previously included in Y090 (disallow assignments in __init__ methods) and Y091 (disallow raise statements). The previous checks were disabled by default.
  • introduce Y016 (duplicate union member)
  • introduce Y017 (disallows assignments with multiple targets or non-name targets)
  • introduce Y018 (detect unused TypeVars)
  • introduce Y019 (detect TypeVars that should be _typeshed.Self, but aren't)
  • introduce Y020 (never use quoted annotations in stubs)
  • introduce Y021 (docstrings should not be included in stubs)
  • introduce Y022 (prefer stdlib classes over typing aliases)
  • introduce Y023 (prefer typing over typing_extensions)
  • introduce Y024 (prefer typing.NamedTuple to collections.namedtuple)
  • introduce Y026 (require using TypeAlias for type aliases)
  • introduce Y025 (always alias collections.abc.Set)
  • introduce Y027 (Python 2-incompatible extension of Y022)

... (truncated)

Commits

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 March 28, 2022 23:05
@dependabot dependabot bot added autosquash dependencies Pull requests that update a dependency file labels Mar 28, 2022
@github-actions github-actions bot enabled auto-merge (squash) March 28, 2022 23:07
@dependabot dependabot bot force-pushed the dependabot/pip/flake8-pyi-22.3.0 branch from 43879f7 to 9ea07da Compare March 28, 2022 23:11
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot bot commented on behalf of github Apr 18, 2022

Superseded by #718.

@dependabot dependabot bot closed this Apr 18, 2022
auto-merge was automatically disabled April 18, 2022 23:04

Pull request was closed

@dependabot dependabot bot deleted the dependabot/pip/flake8-pyi-22.3.0 branch April 18, 2022 23:04
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