Skip to content

Bump flake8-pyi from 20.10.0 to 22.8.2#758

Merged
Dreamsorcerer merged 4 commits intomasterfrom
dependabot/pip/flake8-pyi-22.8.2
Oct 3, 2022
Merged

Bump flake8-pyi from 20.10.0 to 22.8.2#758
Dreamsorcerer merged 4 commits intomasterfrom
dependabot/pip/flake8-pyi-22.8.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Aug 31, 2022

Bumps flake8-pyi from 20.10.0 to 22.8.2.

Release notes

Sourced from flake8-pyi's releases.

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.

22.8.0

New error codes:

  • Y046: Detect unused Protocols.
  • Y048: Function bodies should contain exactly one statement.

Bugfixes:

  • Improve error message for the case where a function body contains a docstring and a ... or pass statement.

Other changes:

  • Pin required flake8 version to <5.0.0 (flake8-pyi is not currently compatible with flake8 5.0.0).

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

... (truncated)

Changelog

Sourced from flake8-pyi's changelog.

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.

22.8.0

New error codes:

  • Y046: Detect unused Protocols.
  • Y048: Function bodies should contain exactly one statement.

Bugfixes:

  • Improve error message for the case where a function body contains a docstring and a ... or pass statement.

Other changes:

  • Pin required flake8 version to <5.0.0 (flake8-pyi is not currently compatible with flake8 5.0.0).

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

... (truncated)

Commits
  • 60a3112 Prepare for release 22.8.2 (#280)
  • 8957cb5 Introduce Y051: Detect redundant unions between Literal types and builtin s...
  • 8651fbe Refactor union-analysis error codes (#277)
  • 221c26c Introduce Y050: Use Never for argument annotations, not NoReturn (#274)
  • 14ab297 Introduce Y049: Detect unused TypedDicts (#271)
  • b7b2d52 Introduce Y047: Detect unused TypeAlias declarations (#255)
  • fcb4633 Clarify Y044 in README, link readthedocs (#267)
  • 349ee3d Pin gh-action-pypi-publish to release/v1; bump types-pyflakes version (...
  • 0284968 Shorten some line lengths, improve .flake8 config file (#265)
  • dfe6d76 Prepare for release 22.8.1 (#264)
  • 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 August 31, 2022 23:06
@dependabot dependabot bot added autosquash dependencies Pull requests that update a dependency file labels Aug 31, 2022
@webknjaz webknjaz force-pushed the dependabot/pip/flake8-pyi-22.8.2 branch from 14fc7a2 to 9c5a771 Compare September 22, 2022 13:43
@webknjaz
Copy link
Copy Markdown
Member

@Dreamsorcerer I'm assigning this to you since it's related to #684 — maybe it'll be solved after merging it?

@Dreamsorcerer
Copy link
Copy Markdown
Member

Only if I remove the .pyi files and do inline annotations, and then this library can just be removed. Might do that as a separate PR.

Otherwise, we'd just have to ignore these bogus errors, or see if the maintainers add some 3.7 compatibility option:
PyCQA/flake8-pyi#284

@Dreamsorcerer
Copy link
Copy Markdown
Member

Only if I remove the .pyi files and do inline annotations, and then this library can just be removed. Might do that as a separate PR.

Otherwise, we'd just have to ignore these bogus errors, or see if the maintainers add some 3.7 compatibility option: PyCQA/flake8-pyi#284

Wait, .pyi files don't run Python, forget that... We can just update the .pyi files.

@webknjaz
Copy link
Copy Markdown
Member

webknjaz commented Oct 3, 2022

@Dreamsorcerer would you take care of this?

@Dreamsorcerer Dreamsorcerer enabled auto-merge (squash) October 3, 2022 19:41
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 3, 2022

Codecov Report

Merging #758 (919bf6d) into master (4e2ae44) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #758   +/-   ##
=======================================
  Coverage   93.65%   93.65%           
=======================================
  Files           5        5           
  Lines         504      504           
=======================================
  Hits          472      472           
  Misses         32       32           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Dreamsorcerer Dreamsorcerer merged commit ee208a2 into master Oct 3, 2022
@Dreamsorcerer Dreamsorcerer deleted the dependabot/pip/flake8-pyi-22.8.2 branch October 3, 2022 19:49
@Dreamsorcerer
Copy link
Copy Markdown
Member

Not sure why yet, but looks like the new release is causing some type errors in aiohttp.

@Dreamsorcerer
Copy link
Copy Markdown
Member

Curiously, I don't seem to get any errors when testing locally...
Not really sure what's happening.

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.

2 participants