aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/warnings.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-06-01 11:07:52 +0300
committerGitHub <noreply@github.com>2023-06-01 08:07:52 +0000
commit201440e97a3433ad7691163c4a17d4c2721fd7c6 (patch)
treee690324d0e181880f4c365f8e7752f504a7b9fc3 /Lib/warnings.py
parent7d07e5891d2843f269fac00dc8847abfe3671765 (diff)
downloadcpython-201440e97a3433ad7691163c4a17d4c2721fd7c6.tar.gz
cpython-201440e97a3433ad7691163c4a17d4c2721fd7c6.zip
Fix docstring of `warnings._deprecated` to show correct `remove` value (#105178)
Diffstat (limited to 'Lib/warnings.py')
-rw-r--r--Lib/warnings.py2
1 files changed, 1 insertions, 1 deletions
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]}"