mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-10 18:36:31 +08:00
[stdlib] Add missing Final (#14613)
This commit is contained in:
@@ -52,7 +52,7 @@ else:
|
||||
"seal",
|
||||
)
|
||||
|
||||
FILTER_DIR: Any
|
||||
FILTER_DIR: bool # controls the way mock objects respond to `dir` function
|
||||
|
||||
class _SentinelObject:
|
||||
name: Any
|
||||
@@ -61,7 +61,7 @@ class _SentinelObject:
|
||||
class _Sentinel:
|
||||
def __getattr__(self, name: str) -> Any: ...
|
||||
|
||||
sentinel: Any
|
||||
sentinel: _Sentinel
|
||||
DEFAULT: Any
|
||||
|
||||
_ArgsKwargs: TypeAlias = tuple[tuple[Any, ...], Mapping[str, Any]]
|
||||
@@ -428,7 +428,7 @@ class _ANY:
|
||||
def __ne__(self, other: object) -> Literal[False]: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
ANY: Any
|
||||
ANY: _ANY
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def create_autospec(
|
||||
|
||||
@@ -5,12 +5,12 @@ from typing_extensions import TypeAlias
|
||||
_T = TypeVar("_T")
|
||||
_Mismatch: TypeAlias = tuple[_T, _T, int]
|
||||
|
||||
_MAX_LENGTH: Final[int]
|
||||
_PLACEHOLDER_LEN: Final[int]
|
||||
_MIN_BEGIN_LEN: Final[int]
|
||||
_MIN_END_LEN: Final[int]
|
||||
_MIN_COMMON_LEN: Final[int]
|
||||
_MIN_DIFF_LEN: Final[int]
|
||||
_MAX_LENGTH: Final = 80
|
||||
_PLACEHOLDER_LEN: Final = 12
|
||||
_MIN_BEGIN_LEN: Final = 5
|
||||
_MIN_END_LEN: Final = 5
|
||||
_MIN_COMMON_LEN: Final = 5
|
||||
_MIN_DIFF_LEN: Final = 41
|
||||
|
||||
def _shorten(s: str, prefixlen: int, suffixlen: int) -> str: ...
|
||||
def _common_shorten_repr(*args: str) -> tuple[str, ...]: ...
|
||||
|
||||
Reference in New Issue
Block a user