[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
+3 -3
View File
@@ -155,7 +155,7 @@ class Logger(Filterer):
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
@deprecated("Deprecated; use warning() instead.")
@deprecated("Deprecated since Python 3.3. Use `Logger.warning()` instead.")
def warn(
self,
msg: object,
@@ -409,7 +409,7 @@ class LoggerAdapter(Generic[_L]):
extra: Mapping[str, object] | None = None,
**kwargs: object,
) -> None: ...
@deprecated("Deprecated; use warning() instead.")
@deprecated("Deprecated since Python 3.3. Use `LoggerAdapter.warning()` instead.")
def warn(
self,
msg: object,
@@ -519,7 +519,7 @@ def warning(
stacklevel: int = 1,
extra: Mapping[str, object] | None = None,
) -> None: ...
@deprecated("Deprecated; use warning() instead.")
@deprecated("Deprecated since Python 3.3. Use `warning()` instead.")
def warn(
msg: object,
*args: object,