mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Bump pyflakes to 2.5.* (#8495)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# These all have class-level defaults that differ from the instance attributes
|
||||
# These all have class-level defaults that differ from the instance attributes
|
||||
pyflakes.messages.CommentAnnotationSyntaxError.message_args
|
||||
pyflakes.messages.DuplicateArgument.message_args
|
||||
pyflakes.messages.ForwardAnnotationSyntaxError.message_args
|
||||
@@ -13,7 +13,6 @@ pyflakes.messages.PercentFormatInvalidFormat.message_args
|
||||
pyflakes.messages.PercentFormatMissingArgument.message_args
|
||||
pyflakes.messages.PercentFormatPositionalCountMismatch.message_args
|
||||
pyflakes.messages.PercentFormatUnsupportedFormatCharacter.message_args
|
||||
pyflakes.messages.RedefinedInListComp.message_args
|
||||
pyflakes.messages.RedefinedWhileUnused.message_args
|
||||
pyflakes.messages.StringDotFormatExtraNamedArguments.message_args
|
||||
pyflakes.messages.StringDotFormatExtraPositionalArguments.message_args
|
||||
@@ -23,4 +22,4 @@ pyflakes.messages.UndefinedExport.message_args
|
||||
pyflakes.messages.UndefinedLocal.message_args
|
||||
pyflakes.messages.UndefinedName.message_args
|
||||
pyflakes.messages.UnusedImport.message_args
|
||||
pyflakes.messages.UnusedVariable.message_args
|
||||
pyflakes.messages.UnusedVariable.message_args
|
||||
|
||||
@@ -1 +1 @@
|
||||
version = "2.4.*"
|
||||
version = "2.5.*"
|
||||
|
||||
@@ -13,20 +13,12 @@ _F = TypeVar("_F", bound=_AnyFunction)
|
||||
_P = ParamSpec("_P")
|
||||
_T = TypeVar("_T")
|
||||
|
||||
PY2: bool
|
||||
PY35_PLUS: bool
|
||||
PY36_PLUS: bool
|
||||
PY38_PLUS: bool
|
||||
PYPY: bool
|
||||
|
||||
def getNodeType(node_class: type[ast.AST]) -> str: ...
|
||||
def get_raise_argument(node: ast.Raise) -> ast.expr | None: ...
|
||||
def getAlternatives(n: ast.If | ast.Try) -> list[ast.AST]: ...
|
||||
|
||||
FOR_TYPES: tuple[type[ast.For], type[ast.AsyncFor]]
|
||||
LOOP_TYPES: tuple[type[ast.While], type[ast.For], type[ast.AsyncFor]]
|
||||
FUNCTION_TYPES: tuple[type[ast.FunctionDef], type[ast.AsyncFunctionDef]]
|
||||
ANNASSIGN_TYPES: tuple[type[ast.AnnAssign]]
|
||||
TYPE_COMMENT_RE: Pattern[str]
|
||||
ASCII_NON_ALNUM: str
|
||||
TYPE_IGNORE_RE: Pattern[str]
|
||||
@@ -243,23 +235,18 @@ class Checker:
|
||||
def handleAnnotation(self, annotation: ast.AST, node: ast.AST) -> None: ...
|
||||
def ignore(self, node: ast.AST) -> None: ...
|
||||
def DELETE(self, tree: ast.Delete, omit: _OmitType = ...) -> None: ...
|
||||
def PRINT(self, tree: ast.AST, omit: _OmitType = ...) -> None: ...
|
||||
def FOR(self, tree: ast.For, omit: _OmitType = ...) -> None: ...
|
||||
def ASYNCFOR(self, tree: ast.AsyncFor, omit: _OmitType = ...) -> None: ...
|
||||
def WHILE(self, tree: ast.While, omit: _OmitType = ...) -> None: ...
|
||||
def WITH(self, tree: ast.With, omit: _OmitType = ...) -> None: ...
|
||||
def WITHITEM(self, tree: ast.AST, omit: _OmitType = ...) -> None: ...
|
||||
def ASYNCWITH(self, tree: ast.AsyncWith, omit: _OmitType = ...) -> None: ...
|
||||
def ASYNCWITHITEM(self, tree: ast.AST, omit: _OmitType = ...) -> None: ...
|
||||
def TRYFINALLY(self, tree: ast.Try, omit: _OmitType = ...) -> None: ...
|
||||
def EXEC(self, tree: ast.AST, omit: _OmitType = ...) -> None: ...
|
||||
def EXPR(self, tree: ast.AST, omit: _OmitType = ...) -> None: ...
|
||||
def ASSIGN(self, tree: ast.Assign, omit: _OmitType = ...) -> None: ...
|
||||
def PASS(self, node: ast.AST) -> None: ...
|
||||
def BOOLOP(self, tree: ast.BoolOp, omit: _OmitType = ...) -> None: ...
|
||||
def UNARYOP(self, tree: ast.UnaryOp, omit: _OmitType = ...) -> None: ...
|
||||
def SET(self, tree: ast.Set, omit: _OmitType = ...) -> None: ...
|
||||
def REPR(self, tree: ast.AST, omit: _OmitType = ...) -> None: ...
|
||||
def ATTRIBUTE(self, tree: ast.Attribute, omit: _OmitType = ...) -> None: ...
|
||||
def STARRED(self, tree: ast.Starred, omit: _OmitType = ...) -> None: ...
|
||||
def NAMECONSTANT(self, tree: ast.NameConstant, omit: _OmitType = ...) -> None: ...
|
||||
@@ -346,7 +333,6 @@ class Checker:
|
||||
def IMPORT(self, node: ast.Import) -> None: ...
|
||||
def IMPORTFROM(self, node: ast.ImportFrom) -> None: ...
|
||||
def TRY(self, node: ast.Try) -> None: ...
|
||||
def TRYEXCEPT(self, node: ast.Try) -> None: ...
|
||||
def EXCEPTHANDLER(self, node: ast.ExceptHandler) -> None: ...
|
||||
def ANNASSIGN(self, node: ast.AnnAssign) -> None: ...
|
||||
def COMPARE(self, node: ast.Compare) -> None: ...
|
||||
|
||||
@@ -17,10 +17,6 @@ class RedefinedWhileUnused(Message):
|
||||
message_args: tuple[Any, int]
|
||||
def __init__(self, filename, loc: ast.AST, name, orig_loc: ast.AST) -> None: ...
|
||||
|
||||
class RedefinedInListComp(Message):
|
||||
message_args: tuple[Any, int]
|
||||
def __init__(self, filename, loc: ast.AST, name, orig_loc: ast.AST) -> None: ...
|
||||
|
||||
class ImportShadowedByLoopVar(Message):
|
||||
message_args: tuple[Any, int]
|
||||
def __init__(self, filename, loc: ast.AST, name, orig_loc: ast.AST) -> None: ...
|
||||
@@ -69,7 +65,7 @@ class MultiValueRepeatedKeyVariable(Message):
|
||||
|
||||
class LateFutureImport(Message):
|
||||
message_args: tuple[()]
|
||||
def __init__(self, filename, loc: ast.AST, names) -> None: ...
|
||||
def __init__(self, filename, loc: ast.AST) -> None: ...
|
||||
|
||||
class FutureFeatureNotDefined(Message):
|
||||
message_args: tuple[Any]
|
||||
@@ -79,7 +75,6 @@ class UnusedVariable(Message):
|
||||
message_args: tuple[Any]
|
||||
def __init__(self, filename, loc: ast.AST, names) -> None: ...
|
||||
|
||||
class ReturnWithArgsInsideGenerator(Message): ...
|
||||
class ReturnOutsideFunction(Message): ...
|
||||
class YieldOutsideFunction(Message): ...
|
||||
class ContinueOutsideLoop(Message): ...
|
||||
|
||||
Reference in New Issue
Block a user