mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-09 18:09:17 +08:00
[stdlib] Add missing Final (#14613)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user