mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
regex stubs: Add __getitem__ method to Match (#7372)
This commit is contained in:
@@ -172,6 +172,10 @@ class Match(Generic[AnyStr]):
|
||||
def captures(self, __group1: int | str, __group2: int | str, *groups: int | str) -> tuple[list[AnyStr], ...]: ...
|
||||
def capturesdict(self) -> dict[str, list[AnyStr]]: ...
|
||||
def detach_string(self) -> None: ...
|
||||
@overload
|
||||
def __getitem__(self, __key: Literal[0]) -> AnyStr: ...
|
||||
@overload
|
||||
def __getitem__(self, __key: int | str) -> AnyStr | Any: ...
|
||||
|
||||
@final
|
||||
class Splitter(Generic[AnyStr]):
|
||||
|
||||
Reference in New Issue
Block a user