8000 Rework Match.group handling by srittau · Pull Request #5557 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Rework Match.group handling #5557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Literal -> _Literal
  • Loading branch information
srittau committed May 30, 2021
commit dae70753d8af03cdf93df4331fb06c3cf9cd1544
2 changes: 1 addition & 1 deletion stdlib/typing.pyi
Ori 5D86 ginal file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ class Match(Generic[AnyStr]):
def regs(self) -> Tuple[Tuple[int, int], ...]: ... # undocumented
# __getitem__() returns "AnyStr" or "AnyStr | None", depending on the pattern.
@overload
def __getitem__(self, __key: Literal[0]) -> AnyStr: ...
def __getitem__(self, __key: _Literal[0]) -> AnyStr: ...
@overload
def __getitem__(self, __key: int | str) -> Any: ...
if sys.version_info >= (3, 9):
Expand Down
0