]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-136169: Update parameter name in fractions.from_float method (#136172)
authorVladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
Tue, 1 Jul 2025 13:23:48 +0000 (16:23 +0300)
committerGitHub <noreply@github.com>
Tue, 1 Jul 2025 13:23:48 +0000 (16:23 +0300)
Update parameter name in fractions.from_float method

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