8000 Fix docstring of `warnings._deprecated` to show correct `remove` valu… · python/cpython@201440e · GitHub
[go: up one dir, main page]

Skip to content

Commit 201440e

Browse files
authored
Fix docstring of warnings._deprecated to show correct remove value (#105178)
1 parent 7d07e58 commit 201440e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/warnings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def _deprecated(name, message=_DEPRECATED_MSG, *, remove, _version=sys.version_i
517517
the current Python version or the same version but past the alpha.
518518
519519
The *message* argument is formatted with *name* and *remove* as a Python
520-
version (e.g. "3.11").
520+
version tuple (e.g. (3, 11)).
521521
522522
"""
523523
remove_formatted = f"{remove[0]}.{remove[1]}"

0 commit comments

Comments
 (0)
0