stdlib: Add defaults for positional-only parameters (#9655)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-02-01 21:44:08 +00:00
1 parent 35172c7aab
commit 1d7dda7fa1
30 files changed
+159 -155

No files matched your search

+3 -3
View File
@@ -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.