From 8b0090c39bed382435dd7a13b60966729ddc5dfc Mon Sep 17 00:00:00 2001 From: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:52:48 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Fix=20doctrings=20for=20`max=5Fd?= =?UTF-8?q?igits`=20and=20`decimal=5Fplaces`=20(#14944)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix doctrings for `max_digits` and `decimal_places` --- fastapi/param_functions.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/fastapi/param_functions.py b/fastapi/param_functions.py index 4be504f435..d3edde2682 100644 --- a/fastapi/param_functions.py +++ b/fastapi/param_functions.py @@ -211,7 +211,7 @@ def Path( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -219,7 +219,7 @@ def Path( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset, @@ -570,7 +570,7 @@ def Query( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -578,7 +578,7 @@ def Query( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset, @@ -892,7 +892,7 @@ def Header( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -900,7 +900,7 @@ def Header( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset, @@ -1198,7 +1198,7 @@ def Cookie( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -1206,7 +1206,7 @@ def Cookie( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset, @@ -1526,7 +1526,7 @@ def Body( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -1534,7 +1534,7 @@ def Body( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset, @@ -1842,7 +1842,7 @@ def Form( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -1850,7 +1850,7 @@ def Form( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset, @@ -2157,7 +2157,7 @@ def File( # noqa: N802 int | None, Doc( """ - Maximum number of allow digits for strings. + Maximum number of digits allowed for decimal values. """ ), ] = _Unset, @@ -2165,7 +2165,7 @@ def File( # noqa: N802 int | None, Doc( """ - Maximum number of decimal places allowed for numbers. + Maximum number of decimal places allowed for decimal values. """ ), ] = _Unset,