Skip to content

Commit 4e1656d

Browse files
authored
Correct sre_parse.State.opengroup (#6608)
1 parent 6baf64c commit 4e1656d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/sre_parse.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class _State:
2424
def __init__(self) -> None: ...
2525
@property
2626
def groups(self) -> int: ...
27-
def opengroup(self, name: str = ...) -> int: ...
27+
def opengroup(self, name: str | None = ...) -> int: ...
2828
def closegroup(self, gid: int, p: SubPattern) -> None: ...
2929
def checkgroup(self, gid: int) -> bool: ...
3030
def checklookbehindgroup(self, gid: int, source: Tokenizer) -> None: ...

0 commit comments

Comments
 (0)