From 201440e97a3433ad7691163c4a17d4c2721fd7c6 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 1 Jun 2023 11:07:52 +0300 Subject: [PATCH] Fix docstring of `warnings._deprecated` to show correct `remove` value (#105178) --- Lib/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/warnings.py b/Lib/warnings.py index 98ae708ca34..32e58072b9c 100644 --- a/Lib/warnings.py +++ b/Lib/warnings.py @@ -517,7 +517,7 @@ def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_i the current Python version or the same version but past the alpha. The *message* argument is formatted with *name* and *remove* as a Python - version (e.g. "3.11"). + version tuple (e.g. (3, 11)). """ remove_formatted = f"{remove[0]}.{remove[1]}"