]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-136169: Update parameter name in fractions.from_float method (GH-136172...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 1 Jul 2025 13:30:49 +0000 (15:30 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Jul 2025 13:30:49 +0000 (13:30 +0000)
gh-136169: Update parameter name in fractions.from_float method (GH-136172)

Update parameter name in fractions.from_float method
(cherry picked from commit 9c0cb5beb893284c5d49f947bbd81dfe081a5d71)

Co-authored-by: Vladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
Doc/library/fractions.rst

index 7e615ed230a340bdf4c8c0d6f4bf5640771bc31c..1877e72d009e8ce6117e8a07fab2215dcf645bae 100644 (file)
@@ -133,7 +133,7 @@ another rational number, or from a string.
 
       .. versionadded:: 3.12
 
-   .. classmethod:: from_float(flt)
+   .. classmethod:: from_float(f)
 
       Alternative constructor which only accepts instances of
       :class:`float` or :class:`numbers.Integral`. Beware that