[stdlib] Add missing Final (#14613)

This commit is contained in:
Semyon Moroz authored and GitHub committed 2025-08-21 12:18:20 +02:00
1 parent 9b5b3ecb0a
commit 9bb8c4f1f9
30 files changed
+197 -187

No files matched your search

+1 -2
View File
@@ -15,8 +15,7 @@ RUNNING: Final = "RUNNING"
CANCELLED: Final = "CANCELLED"
CANCELLED_AND_NOTIFIED: Final = "CANCELLED_AND_NOTIFIED"
FINISHED: Final = "FINISHED"
_FUTURE_STATES: list[str]
_STATE_TO_DESCRIPTION_MAP: dict[str, str]
_STATE_TO_DESCRIPTION_MAP: Final[dict[str, str]]
LOGGER: Logger
class Error(Exception): ...
+3 -3
View File
@@ -5,7 +5,7 @@ from multiprocessing.context import BaseContext, Process
from multiprocessing.queues import Queue, SimpleQueue
from threading import Lock, Semaphore, Thread
from types import TracebackType
from typing import Any, Generic, TypeVar, overload
from typing import Any, Final, Generic, TypeVar, overload
from typing_extensions import TypeVarTuple, Unpack
from weakref import ref
@@ -28,9 +28,9 @@ class _ThreadWakeup:
def _python_exit() -> None: ...
EXTRA_QUEUED_CALLS: int
EXTRA_QUEUED_CALLS: Final = 1
_MAX_WINDOWS_WORKERS: int
_MAX_WINDOWS_WORKERS: Final = 61
class _RemoteTraceback(Exception):
tb: str