File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 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:
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.
Original file line number Diff line number Diff 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
4343LOG = 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
You can’t perform that action at this time.
0 commit comments