]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] 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:31:16 +0000 (15:31 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Jul 2025 13:31:16 +0000 (13:31 +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 fc7f9a6301a9153f945b227021c775ba7932133f..392b6d40e861fbdd9dae860b1a47748560c5e59c 100644 (file)
@@ -142,7 +142,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