Use Final for Constant Literals in the stdlib (#12332)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Max MuotoandAlex Waygood authored and GitHub committed 2024-07-15 18:07:34 +01:00
1 parent 02b05d67c4
commit 0df6028dc8
41 files changed
+569 -572

No files matched your search

+2 -2
View File
@@ -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: