@@ -9,8 +9,7 @@ from typing_extensions import Never
99
1010from pyflakes .messages import Message
1111
12- _AnyFunction : TypeAlias = Callable [..., Any ]
13- _F = TypeVar ("_F" , bound = _AnyFunction )
12+ _F = TypeVar ("_F" , bound = Callable [..., Any ])
1413_P = ParamSpec ("_P" )
1514
1615PYPY : Final [bool ]
@@ -144,17 +143,6 @@ class AnnotationState:
144143def in_annotation (func : _F ) -> _F : ...
145144def in_string_annotation (func : _F ) -> _F : ...
146145
147- _Match : TypeAlias = ast .Match
148- _MatchCase : TypeAlias = ast .match_case
149- _MatchValue : TypeAlias = ast .MatchValue
150- _MatchSingleton : TypeAlias = ast .MatchSingleton
151- _MatchSequence : TypeAlias = ast .MatchSequence
152- _MatchStar : TypeAlias = ast .MatchStar
153- _MatchMapping : TypeAlias = ast .MatchMapping
154- _MatchClass : TypeAlias = ast .MatchClass
155- _MatchAs : TypeAlias = ast .MatchAs
156- _MatchOr : TypeAlias = ast .MatchOr
157-
158146if sys .version_info >= (3 , 12 ):
159147 _TypeVar : TypeAlias = ast .TypeVar
160148 _ParamSpec : TypeAlias = ast .ParamSpec
@@ -196,7 +184,7 @@ class Checker:
196184 withDoctest : bool = False ,
197185 file_tokens : Unused = (),
198186 ) -> None : ...
199- def deferFunction (self , callable : _AnyFunction ) -> None : ...
187+ def deferFunction (self , callable : Callable [..., Any ] ) -> None : ...
200188 @property
201189 def futuresAllowed (self ) -> bool : ...
202190 @futuresAllowed .setter
@@ -334,16 +322,16 @@ class Checker:
334322 def EXCEPTHANDLER (self , node : ast .ExceptHandler ) -> None : ...
335323 def ANNASSIGN (self , node : ast .AnnAssign ) -> None : ...
336324 def COMPARE (self , node : ast .Compare ) -> None : ...
337- def MATCH (self , tree : _Match , omit : _OmitType = None ) -> None : ...
338- def MATCH_CASE (self , tree : _MatchCase , omit : _OmitType = None ) -> None : ...
339- def MATCHCLASS (self , tree : _MatchClass , omit : _OmitType = None ) -> None : ...
340- def MATCHOR (self , tree : _MatchOr , omit : _OmitType = None ) -> None : ...
341- def MATCHSEQUENCE (self , tree : _MatchSequence , omit : _OmitType = None ) -> None : ...
342- def MATCHSINGLETON (self , tree : _MatchSingleton , omit : _OmitType = None ) -> None : ...
343- def MATCHVALUE (self , tree : _MatchValue , omit : _OmitType = None ) -> None : ...
344- def MATCHAS (self , node : _MatchAs ) -> None : ...
345- def MATCHMAPPING (self , node : _MatchMapping ) -> None : ...
346- def MATCHSTAR (self , node : _MatchStar ) -> None : ...
325+ def MATCH (self , tree : ast . Match , omit : _OmitType = None ) -> None : ...
326+ def MATCH_CASE (self , tree : ast . match_case , omit : _OmitType = None ) -> None : ...
327+ def MATCHCLASS (self , tree : ast . MatchClass , omit : _OmitType = None ) -> None : ...
328+ def MATCHOR (self , tree : ast . MatchOr , omit : _OmitType = None ) -> None : ...
329+ def MATCHSEQUENCE (self , tree : ast . MatchSequence , omit : _OmitType = None ) -> None : ...
330+ def MATCHSINGLETON (self , tree : ast . MatchSingleton , omit : _OmitType = None ) -> None : ...
331+ def MATCHVALUE (self , tree : ast . MatchValue , omit : _OmitType = None ) -> None : ...
332+ def MATCHAS (self , node : ast . MatchAs ) -> None : ...
333+ def MATCHMAPPING (self , node : ast . MatchMapping ) -> None : ...
334+ def MATCHSTAR (self , node : ast . MatchStar ) -> None : ...
347335 def TYPEVAR (self , node : _TypeVar ) -> None : ...
348336 def PARAMSPEC (self , node : _ParamSpec ) -> None : ...
349337 def TYPEVARTUPLE (self , node : _TypeVarTuple ) -> None : ...
0 commit comments