enable string arguments for start, end, and span methods of Match object

This commit is contained in:
detlefla
2016-05-07 18:53:24 +02:00
committed by Guido van Rossum
parent 0be5a11496
commit e2ce50b525
2 changed files with 6 additions and 6 deletions

View File

@@ -360,9 +360,9 @@ class Match(Generic[AnyStr]):
def groups(self, default: AnyStr = ...) -> Sequence[AnyStr]: ...
def groupdict(self, default: AnyStr = ...) -> dict[str, AnyStr]: ...
def start(self, group: int = ...) -> int: ...
def end(self, group: int = ...) -> int: ...
def span(self, group: int = ...) -> Tuple[int, int]: ...
def start(self, group: Union[int, str] = ...) -> int: ...
def end(self, group: Union[int, str] = ...) -> int: ...
def span(self, group: Union[int, str] = ...) -> Tuple[int, int]: ...
class Pattern(Generic[AnyStr]):
flags = 0