mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Changed all regular expression findall() to return list[Any]. Findall() can return both list[AnyStr] and list[Tuple[AnyStr, AnyStr]]. (#269)
This commit is contained in:
committed by
Guido van Rossum
parent
8ee3123e02
commit
82b9baed3b
@@ -377,7 +377,7 @@ class Pattern(Generic[AnyStr]):
|
||||
endpos: int = ...) -> Match[AnyStr]: ...
|
||||
def split(self, string: AnyStr, maxsplit: int = ...) -> list[AnyStr]: ...
|
||||
def findall(self, string: AnyStr, pos: int = ...,
|
||||
endpos: int = ...) -> list[AnyStr]: ...
|
||||
endpos: int = ...) -> list[Any]: ...
|
||||
def finditer(self, string: AnyStr, pos: int = ...,
|
||||
endpos: int = ...) -> Iterator[Match[AnyStr]]: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user