mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
keyword: fix pos-only args (#11967)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user