mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
stdlib: Add defaults for positional-only parameters (#9655)
This commit is contained in:
@@ -89,9 +89,9 @@ class Match(Generic[AnyStr]):
|
||||
def groupdict(self) -> dict[str, AnyStr | Any]: ...
|
||||
@overload
|
||||
def groupdict(self, default: _T) -> dict[str, AnyStr | _T]: ...
|
||||
def start(self, __group: int | str = ...) -> int: ...
|
||||
def end(self, __group: int | str = ...) -> int: ...
|
||||
def span(self, __group: int | str = ...) -> tuple[int, int]: ...
|
||||
def start(self, __group: int | str = 0) -> int: ...
|
||||
def end(self, __group: int | str = 0) -> int: ...
|
||||
def span(self, __group: int | str = 0) -> tuple[int, int]: ...
|
||||
@property
|
||||
def regs(self) -> tuple[tuple[int, int], ...]: ... # undocumented
|
||||
# __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern.
|
||||
|
||||
Reference in New Issue
Block a user