Skip to content

Commit

Permalink
Prepare for release 23.5.0 (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored May 1, 2023
1 parent 64ee02c commit 80d3cba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## Unreleased
## 23.5.0

* flake8-pyi no longer supports being run with flake8 <5.0.4.
* The way in which flake8-pyi modifies pyflakes runs has been improved:
Expand All @@ -24,6 +24,8 @@
the forward reference serves no purpose (there is no recursive or circular
definition). As such, it is now disallowed by pyflakes when flake8-pyi is
installed.

Contributed by [tomasr8](https://github.com/tomasr8).
* Introduce Y056: Various type checkers have different levels of support for method
calls on `__all__`. Use `__all__ += ["foo", "bar"]` instead, as this is known to be
supported by all major type checkers.
Expand Down
4 changes: 2 additions & 2 deletions pyi.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def unparse(node: ast.AST) -> str:
# and mypy thinks typing_extensions is part of the stdlib.
from typing_extensions import Literal, TypeAlias, TypeGuard

__version__ = "23.4.1"
__version__ = "23.5.0"

LOG = logging.getLogger("flake8.pyi")

Expand Down Expand Up @@ -168,7 +168,7 @@ class PyflakesPreProcessor(ast.NodeTransformer):
def visit_ClassDef(self, node: ast.ClassDef) -> ast.ClassDef:
self.generic_visit(node)
node.bases = [
# Remove the subscript to prevent F821 errors from being raised
# Remove the subscript to prevent F821 errors from being emitted
# for (valid) recursive definitions: Foo[Bar] --> Foo
base.value if isinstance(base, ast.Subscript) else base
for base in node.bases
Expand Down

0 comments on commit 80d3cba

Please sign in to comment.