mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
17 lines
434 B
Python
17 lines
434 B
Python
from collections.abc import Sequence
|
|
from typing import Final
|
|
|
|
__all__ = ["iskeyword", "issoftkeyword", "kwlist", "softkwlist"]
|
|
|
|
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]]
|
|
|
|
def issoftkeyword(s: str, /) -> bool: ...
|
|
|
|
# a list at runtime, but you're not meant to mutate it;
|
|
# type it as a sequence
|
|
softkwlist: Final[Sequence[str]]
|