Skip to content
Merged
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
Prev Previous commit
Next Next commit
Inline obsolete type aliases
  • Loading branch information
srittau authored May 7, 2026
commit 9aa3929615e707cf3c4689328e82eb56b33aad42
36 changes: 12 additions & 24 deletions stubs/pyflakes/pyflakes/checker.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ from typing_extensions import Never

from pyflakes.messages import Message

_AnyFunction: TypeAlias = Callable[..., Any]
_F = TypeVar("_F", bound=_AnyFunction)
_F = TypeVar("_F", bound=Callable[..., Any])
_P = ParamSpec("_P")

PYPY: Final[bool]
Expand Down Expand Up @@ -144,17 +143,6 @@ class AnnotationState:
def in_annotation(func: _F) -> _F: ...
def in_string_annotation(func: _F) -> _F: ...

_Match: TypeAlias = ast.Match
_MatchCase: TypeAlias = ast.match_case
_MatchValue: TypeAlias = ast.MatchValue
_MatchSingleton: TypeAlias = ast.MatchSingleton
_MatchSequence: TypeAlias = ast.MatchSequence
_MatchStar: TypeAlias = ast.MatchStar
_MatchMapping: TypeAlias = ast.MatchMapping
_MatchClass: TypeAlias = ast.MatchClass
_MatchAs: TypeAlias = ast.MatchAs
_MatchOr: TypeAlias = ast.MatchOr

if sys.version_info >= (3, 12):
_TypeVar: TypeAlias = ast.TypeVar
_ParamSpec: TypeAlias = ast.ParamSpec
Expand Down Expand Up @@ -196,7 +184,7 @@ class Checker:
withDoctest: bool = False,
file_tokens: Unused = (),
) -> None: ...
def deferFunction(self, callable: _AnyFunction) -> None: ...
def deferFunction(self, callable: Callable[..., Any]) -> None: ...
@property
def futuresAllowed(self) -> bool: ...
@futuresAllowed.setter
Expand Down Expand Up @@ -334,16 +322,16 @@ class Checker:
def EXCEPTHANDLER(self, node: ast.ExceptHandler) -> None: ...
def ANNASSIGN(self, node: ast.AnnAssign) -> None: ...
def COMPARE(self, node: ast.Compare) -> None: ...
def MATCH(self, tree: _Match, omit: _OmitType = None) -> None: ...
def MATCH_CASE(self, tree: _MatchCase, omit: _OmitType = None) -> None: ...
def MATCHCLASS(self, tree: _MatchClass, omit: _OmitType = None) -> None: ...
def MATCHOR(self, tree: _MatchOr, omit: _OmitType = None) -> None: ...
def MATCHSEQUENCE(self, tree: _MatchSequence, omit: _OmitType = None) -> None: ...
def MATCHSINGLETON(self, tree: _MatchSingleton, omit: _OmitType = None) -> None: ...
def MATCHVALUE(self, tree: _MatchValue, omit: _OmitType = None) -> None: ...
def MATCHAS(self, node: _MatchAs) -> None: ...
def MATCHMAPPING(self, node: _MatchMapping) -> None: ...
def MATCHSTAR(self, node: _MatchStar) -> None: ...
def MATCH(self, tree: ast.Match, omit: _OmitType = None) -> None: ...
def MATCH_CASE(self, tree: ast.match_case, omit: _OmitType = None) -> None: ...
def MATCHCLASS(self, tree: ast.MatchClass, omit: _OmitType = None) -> None: ...
def MATCHOR(self, tree: ast.MatchOr, omit: _OmitType = None) -> None: ...
def MATCHSEQUENCE(self, tree: ast.MatchSequence, omit: _OmitType = None) -> None: ...
def MATCHSINGLETON(self, tree: ast.MatchSingleton, omit: _OmitType = None) -> None: ...
def MATCHVALUE(self, tree: ast.MatchValue, omit: _OmitType = None) -> None: ...
def MATCHAS(self, node: ast.MatchAs) -> None: ...
def MATCHMAPPING(self, node: ast.MatchMapping) -> None: ...
def MATCHSTAR(self, node: ast.MatchStar) -> None: ...
def TYPEVAR(self, node: _TypeVar) -> None: ...
def PARAMSPEC(self, node: _ParamSpec) -> None: ...
def TYPEVARTUPLE(self, node: _TypeVarTuple) -> None: ...
Expand Down
Loading