From 3cfbeabcba988dc7571626cf48f181c9760e508b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 29 Jul 2023 14:58:17 +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/dependencies/utils.py | 1 - tests/test_path_parameters_order.py | 1 - 2 files changed, 2 deletions(-) diff --git a/fastapi/dependencies/utils.py b/fastapi/dependencies/utils.py index a38b9f21e8..c866b90354 100644 --- a/fastapi/dependencies/utils.py +++ b/fastapi/dependencies/utils.py @@ -195,7 +195,6 @@ def get_flat_dependant( def preserve_path_params_order(dependant: Dependant) -> Callable[[ModelField], int]: - assert dependant.path is not None path_params_ordered = [] diff --git a/tests/test_path_parameters_order.py b/tests/test_path_parameters_order.py index a5e620e623..64abf361f0 100644 --- a/tests/test_path_parameters_order.py +++ b/tests/test_path_parameters_order.py @@ -147,7 +147,6 @@ def test_path_parameters_order_schema(): def test_path_parameters_order_get(): - path_params = { "user_id": "1", "project_id": "2",