[flake8-simplify] Update to 0.30.* (#15212)

This commit is contained in:
Semyon Moroz
2026-01-07 18:48:41 +00:00
committed by GitHub
parent 3bf7f35646
commit a564787bf2
4 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
version = "0.22.*"
version = "0.30.*"
upstream_repository = "https://github.com/MartinThoma/flake8-simplify"
@@ -6,6 +6,7 @@ from typing import Any, ClassVar
logger: logging.Logger
class Visitor(ast.NodeVisitor):
errors: list[tuple[int, int, str]]
def __init__(self) -> None: ...
def visit_Assign(self, node: ast.Assign) -> None: ...
def visit_Call(self, node: ast.Call) -> None: ...
@@ -1,3 +1,6 @@
BOOL_CONST_TYPES: tuple[type, ...]
AST_CONST_TYPES: tuple[type, ...]
STR_TYPES: tuple[type, ...]
import ast
from typing import Final
BOOL_CONST_TYPES: Final[tuple[type[ast.Constant]]]
AST_CONST_TYPES: Final[tuple[type[ast.Constant]]]
STR_TYPES: Final[tuple[type[ast.Constant]]]
@@ -24,7 +24,6 @@ class Assign(ast.Assign):
def __init__(self, orig: ast.Assign) -> None: ...
def to_source(node: ast.expr | ast.Expr | ast.withitem | ast.slice | ast.Assign | None) -> str: ...
def strip_parenthesis(string: str) -> str: ...
def strip_triple_quotes(string: str) -> str: ...
def use_double_quotes(string: str) -> str: ...
def is_body_same(body1: list[ast.stmt], body2: list[ast.stmt]) -> bool: ...