mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +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,14 +1,14 @@
|
||||
from _typeshed import SizedBuffer
|
||||
from typing import IO, Any, Literal
|
||||
from typing import IO, Any, Final
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
__all__ = ["binhex", "hexbin", "Error"]
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
REASONABLY_LARGE: Literal[32768]
|
||||
LINELEN: Literal[64]
|
||||
RUNCHAR: Literal[b"\x90"]
|
||||
REASONABLY_LARGE: Final = 32768
|
||||
LINELEN: Final = 64
|
||||
RUNCHAR: Final = b"\x90"
|
||||
|
||||
class FInfo:
|
||||
Type: str
|
||||
|
||||
Reference in New Issue
Block a user