mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use Final for Constant Literals in the stdlib (#12332)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
from collections.abc import Callable
|
||||
from typing import IO, Any, Literal
|
||||
from typing import IO, Any, Final
|
||||
|
||||
__all__ = ["Cmd"]
|
||||
|
||||
PROMPT: Literal["(Cmd) "]
|
||||
PROMPT: Final = "(Cmd) "
|
||||
IDENTCHARS: str # Too big to be `Literal`
|
||||
|
||||
class Cmd:
|
||||
|
||||
Reference in New Issue
Block a user