]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix docstring of `warnings._deprecated` to show correct `remove` value (#105178)
authorNikita Sobolev <mail@sobolevn.me>
Thu, 1 Jun 2023 08:07:52 +0000 (11:07 +0300)
committerGitHub <noreply@github.com>
Thu, 1 Jun 2023 08:07:52 +0000 (08:07 +0000)
Lib/warnings.py

index 98ae708ca3401d3e7b0941afade5956c1a0f5c6b..32e58072b9cc33b5000ff8ba0c4949702b122a9d 100644 (file)
@@ -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]}"