mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 12:35:49 +08:00
[flake8-simplify] Update to 0.30.* (#15212)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user