mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-12 03:10:52 +08:00
[stdlib] Mark constants as Final (#14577)
This commit is contained in:
+36
-36
@@ -3,7 +3,7 @@ from _typeshed import FileDescriptorOrPath
|
||||
from collections.abc import Callable, Generator, Iterable, Sequence
|
||||
from re import Pattern
|
||||
from token import *
|
||||
from typing import Any, NamedTuple, TextIO, type_check_only
|
||||
from typing import Any, Final, NamedTuple, TextIO, type_check_only
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
if sys.version_info < (3, 12):
|
||||
@@ -101,8 +101,8 @@ if sys.version_info >= (3, 13):
|
||||
if sys.version_info >= (3, 14):
|
||||
__all__ += ["TSTRING_START", "TSTRING_MIDDLE", "TSTRING_END"]
|
||||
|
||||
cookie_re: Pattern[str]
|
||||
blank_re: Pattern[bytes]
|
||||
cookie_re: Final[Pattern[str]]
|
||||
blank_re: Final[Pattern[bytes]]
|
||||
|
||||
_Position: TypeAlias = tuple[int, int]
|
||||
|
||||
@@ -151,46 +151,46 @@ def group(*choices: str) -> str: ... # undocumented
|
||||
def any(*choices: str) -> str: ... # undocumented
|
||||
def maybe(*choices: str) -> str: ... # undocumented
|
||||
|
||||
Whitespace: str # undocumented
|
||||
Comment: str # undocumented
|
||||
Ignore: str # undocumented
|
||||
Name: str # undocumented
|
||||
Whitespace: Final[str] # undocumented
|
||||
Comment: Final[str] # undocumented
|
||||
Ignore: Final[str] # undocumented
|
||||
Name: Final[str] # undocumented
|
||||
|
||||
Hexnumber: str # undocumented
|
||||
Binnumber: str # undocumented
|
||||
Octnumber: str # undocumented
|
||||
Decnumber: str # undocumented
|
||||
Intnumber: str # undocumented
|
||||
Exponent: str # undocumented
|
||||
Pointfloat: str # undocumented
|
||||
Expfloat: str # undocumented
|
||||
Floatnumber: str # undocumented
|
||||
Imagnumber: str # undocumented
|
||||
Number: str # undocumented
|
||||
Hexnumber: Final[str] # undocumented
|
||||
Binnumber: Final[str] # undocumented
|
||||
Octnumber: Final[str] # undocumented
|
||||
Decnumber: Final[str] # undocumented
|
||||
Intnumber: Final[str] # undocumented
|
||||
Exponent: Final[str] # undocumented
|
||||
Pointfloat: Final[str] # undocumented
|
||||
Expfloat: Final[str] # undocumented
|
||||
Floatnumber: Final[str] # undocumented
|
||||
Imagnumber: Final[str] # undocumented
|
||||
Number: Final[str] # undocumented
|
||||
|
||||
def _all_string_prefixes() -> set[str]: ... # undocumented
|
||||
|
||||
StringPrefix: str # undocumented
|
||||
StringPrefix: Final[str] # undocumented
|
||||
|
||||
Single: str # undocumented
|
||||
Double: str # undocumented
|
||||
Single3: str # undocumented
|
||||
Double3: str # undocumented
|
||||
Triple: str # undocumented
|
||||
String: str # undocumented
|
||||
Single: Final[str] # undocumented
|
||||
Double: Final[str] # undocumented
|
||||
Single3: Final[str] # undocumented
|
||||
Double3: Final[str] # undocumented
|
||||
Triple: Final[str] # undocumented
|
||||
String: Final[str] # undocumented
|
||||
|
||||
Special: str # undocumented
|
||||
Funny: str # undocumented
|
||||
Special: Final[str] # undocumented
|
||||
Funny: Final[str] # undocumented
|
||||
|
||||
PlainToken: str # undocumented
|
||||
Token: str # undocumented
|
||||
PlainToken: Final[str] # undocumented
|
||||
Token: Final[str] # undocumented
|
||||
|
||||
ContStr: str # undocumented
|
||||
PseudoExtras: str # undocumented
|
||||
PseudoToken: str # undocumented
|
||||
ContStr: Final[str] # undocumented
|
||||
PseudoExtras: Final[str] # undocumented
|
||||
PseudoToken: Final[str] # undocumented
|
||||
|
||||
endpats: dict[str, str] # undocumented
|
||||
single_quoted: set[str] # undocumented
|
||||
triple_quoted: set[str] # undocumented
|
||||
endpats: Final[dict[str, str]] # undocumented
|
||||
single_quoted: Final[set[str]] # undocumented
|
||||
triple_quoted: Final[set[str]] # undocumented
|
||||
|
||||
tabsize: int # undocumented
|
||||
tabsize: Final = 8 # undocumented
|
||||
|
||||
Reference in New Issue
Block a user