Skip to content

Commit 6644250

Browse files
authored
Use Final in cmd (#12543)
1 parent 21f7d01 commit 6644250

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/cmd.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from collections.abc import Callable
22
from typing import IO, Any, Final
3+
from typing_extensions import LiteralString
34

45
__all__ = ["Cmd"]
56

67
PROMPT: Final = "(Cmd) "
7-
IDENTCHARS: str # Too big to be `Literal`
8+
IDENTCHARS: Final[LiteralString] # Too big to be `Literal`
89

910
class Cmd:
1011
prompt: str

0 commit comments

Comments
 (0)