Use Final in cmd (#12543)

This commit is contained in:
Max Muoto
2024-08-17 12:59:49 -07:00
committed by GitHub
parent 21f7d012b3
commit 6644250819

View File

@@ -1,10 +1,11 @@
from collections.abc import Callable
from typing import IO, Any, Final
from typing_extensions import LiteralString
__all__ = ["Cmd"]
PROMPT: Final = "(Cmd) "
IDENTCHARS: str # Too big to be `Literal`
IDENTCHARS: Final[LiteralString] # Too big to be `Literal`
class Cmd:
prompt: str