From fdac3fcc43f0a00d89a2fbd15b9993872317234d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 16:38:55 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fastapi/utils.py b/fastapi/utils.py index ae3f51503..bcb08c69d 100644 --- a/fastapi/utils.py +++ b/fastapi/utils.py @@ -61,15 +61,15 @@ def is_body_allowed_for_status_code(status_code: Union[int, str, None]) -> bool: def get_path_param_names(path: str) -> Set[str]: """ Extract path parameter names from a FastAPI route path string. - + Args: path (str): The route path (e.g., '/items/{item_id}/comments/{comment_id}'). - + Returns: Set[str]: A set of parameter names found in the path. """ return set(re.findall("{(.*?)}", path)) - + _invalid_args_message = ( "Invalid args for response field! Hint: " @@ -230,7 +230,7 @@ def generate_unique_id(route: "APIRoute") -> str: def deep_dict_update(main_dict: Dict[Any, Any], update_dict: Dict[Any, Any]) -> None: """ Recursively update the contents of a dictionary with another dictionary. - + Args: main_dict (Dict[Any, Any]): The dictionary to update in-place. update_dict (Dict[Any, Any]): The dictionary to update from.