[stdlib] Copy-edit deprecation messages (#14614)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Semyon Moroz
2025-08-21 11:12:00 +00:00
committed by GitHub
parent 9bb8c4f1f9
commit 5e0d6ee95e
28 changed files with 191 additions and 120 deletions
+8 -8
View File
@@ -46,10 +46,10 @@ if sys.version_info >= (3, 12):
_profile_hook: ProfileFunction | None
def active_count() -> int: ...
@deprecated("Use active_count() instead")
@deprecated("Deprecated since Python 3.10. Use `active_count()` instead.")
def activeCount() -> int: ...
def current_thread() -> Thread: ...
@deprecated("Use current_thread() instead")
@deprecated("Deprecated since Python 3.10. Use `current_thread()` instead.")
def currentThread() -> Thread: ...
def get_ident() -> int: ...
def enumerate() -> list[Thread]: ...
@@ -107,13 +107,13 @@ class Thread:
@property
def native_id(self) -> int | None: ... # only available on some platforms
def is_alive(self) -> bool: ...
@deprecated("Get the daemon attribute instead")
@deprecated("Deprecated since Python 3.10. Read the `daemon` attribute instead.")
def isDaemon(self) -> bool: ...
@deprecated("Set the daemon attribute instead")
@deprecated("Deprecated since Python 3.10. Set the `daemon` attribute instead.")
def setDaemon(self, daemonic: bool) -> None: ...
@deprecated("Use the name attribute instead")
@deprecated("Deprecated since Python 3.10. Read the `name` attribute instead.")
def getName(self) -> str: ...
@deprecated("Use the name attribute instead")
@deprecated("Deprecated since Python 3.10. Set the `name` attribute instead.")
def setName(self, name: str) -> None: ...
class _DummyThread(Thread):
@@ -148,7 +148,7 @@ class Condition:
def wait_for(self, predicate: Callable[[], _T], timeout: float | None = None) -> _T: ...
def notify(self, n: int = 1) -> None: ...
def notify_all(self) -> None: ...
@deprecated("Use notify_all() instead")
@deprecated("Deprecated since Python 3.10. Use `notify_all()` instead.")
def notifyAll(self) -> None: ...
class Semaphore:
@@ -163,7 +163,7 @@ class BoundedSemaphore(Semaphore): ...
class Event:
def is_set(self) -> bool: ...
@deprecated("Use is_set() instead")
@deprecated("Deprecated since Python 3.10. Use `is_set()` instead.")
def isSet(self) -> bool: ...
def set(self) -> None: ...
def clear(self) -> None: ...