mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-26 05:41:11 +08:00
Bump pyflakes to 3.0.* (#9264)
Release: https://pypi.org/pypi/pyflakes/3.0.0 Homepage: https://github.com/PyCQA/pyflakes Diff: https://github.com/PyCQA/pyflakes/compare/2.5.0...3.0.0 Stubsabot analysis of the diff between the two releases: - 0 public Python files have been added. - 0 files included in typeshed's stubs have been deleted. - 4 files included in typeshed's stubs have been modified or renamed: `pyflakes/__init__.py`, `pyflakes/api.py`, `pyflakes/checker.py`, `pyflakes/messages.py`. - Total lines of Python code added: 80. - Total lines of Python code deleted: 446. Co-authored-by: AlexWaygood <alex.waygood@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b3728f38f5
commit
5f5449bcdf
@@ -1,5 +1,4 @@
|
||||
# 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
|
||||
pyflakes.messages.FutureFeatureNotDefined.message_args
|
||||
@@ -21,5 +20,6 @@ pyflakes.messages.StringDotFormatMissingArgument.message_args
|
||||
pyflakes.messages.UndefinedExport.message_args
|
||||
pyflakes.messages.UndefinedLocal.message_args
|
||||
pyflakes.messages.UndefinedName.message_args
|
||||
pyflakes.messages.UnusedAnnotation.message_args
|
||||
pyflakes.messages.UnusedImport.message_args
|
||||
pyflakes.messages.UnusedVariable.message_args
|
||||
|
||||
@@ -1 +1 @@
|
||||
version = "2.5.*"
|
||||
version = "3.0.*"
|
||||
|
||||
@@ -2,7 +2,6 @@ import ast
|
||||
import sys
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from re import Pattern
|
||||
from tokenize import TokenInfo
|
||||
from typing import Any, ClassVar, TypeVar, overload
|
||||
from typing_extensions import Literal, ParamSpec, TypeAlias
|
||||
|
||||
@@ -19,10 +18,6 @@ PYPY: bool
|
||||
def getAlternatives(n: ast.If | ast.Try) -> list[ast.AST]: ...
|
||||
|
||||
FOR_TYPES: tuple[type[ast.For], type[ast.AsyncFor]]
|
||||
TYPE_COMMENT_RE: Pattern[str]
|
||||
ASCII_NON_ALNUM: str
|
||||
TYPE_IGNORE_RE: Pattern[str]
|
||||
TYPE_FUNC_RE: Pattern[str]
|
||||
MAPPING_KEY_RE: Pattern[str]
|
||||
CONVERSION_FLAG_RE: Pattern[str]
|
||||
WIDTH_RE: Pattern[str]
|
||||
@@ -122,17 +117,13 @@ class FunctionScope(Scope):
|
||||
returnValue: Any
|
||||
isGenerator: bool
|
||||
def __init__(self) -> None: ...
|
||||
def unusedAssignments(self) -> Iterator[tuple[str, Binding]]: ...
|
||||
def unused_assignments(self) -> Iterator[tuple[str, Binding]]: ...
|
||||
def unused_annotations(self) -> Iterator[tuple[str, Annotation]]: ...
|
||||
|
||||
class GeneratorScope(Scope): ...
|
||||
class ModuleScope(Scope): ...
|
||||
class DoctestScope(ModuleScope): ...
|
||||
|
||||
class DummyNode:
|
||||
lineno: int
|
||||
col_offset: int
|
||||
def __init__(self, lineno: int, col_offset: int) -> None: ...
|
||||
|
||||
class DetectClassScopedMagic:
|
||||
names: list[str]
|
||||
|
||||
@@ -149,7 +140,6 @@ class AnnotationState:
|
||||
|
||||
def in_annotation(func: _F) -> _F: ...
|
||||
def in_string_annotation(func: _F) -> _F: ...
|
||||
def make_tokens(code: str | bytes) -> tuple[TokenInfo, ...]: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
_NamedExpr: TypeAlias = ast.NamedExpr
|
||||
|
||||
@@ -75,6 +75,10 @@ class UnusedVariable(Message):
|
||||
message_args: tuple[Any]
|
||||
def __init__(self, filename, loc: ast.AST, names) -> None: ...
|
||||
|
||||
class UnusedAnnotation(Message):
|
||||
message_args: tuple[Any]
|
||||
def __init__(self, filename, loc: ast.AST, names) -> None: ...
|
||||
|
||||
class ReturnOutsideFunction(Message): ...
|
||||
class YieldOutsideFunction(Message): ...
|
||||
class ContinueOutsideLoop(Message): ...
|
||||
@@ -90,10 +94,6 @@ class ForwardAnnotationSyntaxError(Message):
|
||||
message_args: tuple[Any]
|
||||
def __init__(self, filename, loc: ast.AST, annotation) -> None: ...
|
||||
|
||||
class CommentAnnotationSyntaxError(Message):
|
||||
message_args: tuple[Any]
|
||||
def __init__(self, filename, loc: ast.AST, annotation) -> None: ...
|
||||
|
||||
class RaiseNotImplemented(Message): ...
|
||||
class InvalidPrintSyntax(Message): ...
|
||||
class IsLiteral(Message): ...
|
||||
|
||||
Reference in New Issue
Block a user