keyword: fix pos-only args (#11967)

This commit is contained in:
Shantanu
2024-05-18 13:27:54 -07:00
committed by GitHub
parent bb28ef882f
commit 7f2a1a742d

View File

@@ -7,14 +7,14 @@ if sys.version_info >= (3, 9):
else:
__all__ = ["iskeyword", "kwlist"]
def iskeyword(s: str) -> bool: ...
def iskeyword(s: str, /) -> bool: ...
# a list at runtime, but you're not meant to mutate it;
# type it as a sequence
kwlist: Final[Sequence[str]]
if sys.version_info >= (3, 9):
def issoftkeyword(s: str) -> bool: ...
def issoftkeyword(s: str, /) -> bool: ...
# a list at runtime, but you're not meant to mutate it;
# type it as a sequence