[stdlib] Add missing Final (#14613)

This commit is contained in:
Semyon Moroz
2025-08-21 12:18:20 +02:00
committed by GitHub
parent 9b5b3ecb0a
commit 9bb8c4f1f9
30 changed files with 197 additions and 187 deletions
+3 -3
View File
@@ -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(