Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stubs/flake8-simplify/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "0.22.*"
version = "0.30.*"
upstream_repository = "https://github.com/MartinThoma/flake8-simplify"
1 change: 1 addition & 0 deletions stubs/flake8-simplify/flake8_simplify/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down
8 changes: 5 additions & 3 deletions stubs/flake8-simplify/flake8_simplify/constants.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BOOL_CONST_TYPES: tuple[type, ...]
AST_CONST_TYPES: tuple[type, ...]
STR_TYPES: tuple[type, ...]
import ast

BOOL_CONST_TYPES: tuple[type[ast.Constant]]
AST_CONST_TYPES: tuple[type[ast.Constant]]
STR_TYPES: tuple[type[ast.Constant]]
1 change: 0 additions & 1 deletion stubs/flake8-simplify/flake8_simplify/utils.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down