Skip to content

Commit 80d3cba

Browse files
authored
Prepare for release 23.5.0 (#371)
1 parent 64ee02c commit 80d3cba

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## Unreleased
3+
## 23.5.0
44

55
* flake8-pyi no longer supports being run with flake8 <5.0.4.
66
* The way in which flake8-pyi modifies pyflakes runs has been improved:
@@ -24,6 +24,8 @@
2424
the forward reference serves no purpose (there is no recursive or circular
2525
definition). As such, it is now disallowed by pyflakes when flake8-pyi is
2626
installed.
27+
28+
Contributed by [tomasr8](https://github.com/tomasr8).
2729
* Introduce Y056: Various type checkers have different levels of support for method
2830
calls on `__all__`. Use `__all__ += ["foo", "bar"]` instead, as this is known to be
2931
supported by all major type checkers.

pyi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def unparse(node: ast.AST) -> str:
3838
# and mypy thinks typing_extensions is part of the stdlib.
3939
from typing_extensions import Literal, TypeAlias, TypeGuard
4040

41-
__version__ = "23.4.1"
41+
__version__ = "23.5.0"
4242

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

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

0 commit comments

Comments
 (0)