Skip to content

Commit a564787

Browse files
authored
[flake8-simplify] Update to 0.30.* (#15212)
1 parent 3bf7f35 commit a564787

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "0.22.*"
1+
version = "0.30.*"
22
upstream_repository = "https://github.com/MartinThoma/flake8-simplify"

stubs/flake8-simplify/flake8_simplify/__init__.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ from typing import Any, ClassVar
66
logger: logging.Logger
77

88
class Visitor(ast.NodeVisitor):
9+
errors: list[tuple[int, int, str]]
910
def __init__(self) -> None: ...
1011
def visit_Assign(self, node: ast.Assign) -> None: ...
1112
def visit_Call(self, node: ast.Call) -> None: ...
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
BOOL_CONST_TYPES: tuple[type, ...]
2-
AST_CONST_TYPES: tuple[type, ...]
3-
STR_TYPES: tuple[type, ...]
1+
import ast
2+
from typing import Final
3+
4+
BOOL_CONST_TYPES: Final[tuple[type[ast.Constant]]]
5+
AST_CONST_TYPES: Final[tuple[type[ast.Constant]]]
6+
STR_TYPES: Final[tuple[type[ast.Constant]]]

stubs/flake8-simplify/flake8_simplify/utils.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class Assign(ast.Assign):
2424
def __init__(self, orig: ast.Assign) -> None: ...
2525

2626
def to_source(node: ast.expr | ast.Expr | ast.withitem | ast.slice | ast.Assign | None) -> str: ...
27-
def strip_parenthesis(string: str) -> str: ...
2827
def strip_triple_quotes(string: str) -> str: ...
2928
def use_double_quotes(string: str) -> str: ...
3029
def is_body_same(body1: list[ast.stmt], body2: list[ast.stmt]) -> bool: ...

0 commit comments

Comments
 (0)