🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2025-11-07 13:57:10 +00:00
parent c9bfba04dd
commit 147ca63107
2 changed files with 2 additions and 4 deletions

View File

@ -329,6 +329,7 @@ def add_non_field_param_to_dependency(
return True
return None
def remove_invalid(v: Any, handler: Callable[[Any], Any]) -> Any:
try:
return handler(v)

View File

@ -22,9 +22,7 @@ def test_foo_needy_very(client: TestClient):
def test_just_string_not_scalar_mapping(client: TestClient):
response = client.get(
"/query/mixed-type-params?&query=2&foo=1&bar=3&foo=2&foo=baz"
)
response = client.get("/query/mixed-type-params?&query=2&foo=1&bar=3&foo=2&foo=baz")
assert response.status_code == 200
assert response.json() == {
"query": 2,
@ -32,4 +30,3 @@ def test_just_string_not_scalar_mapping(client: TestClient):
"mapping_query_int": {"bar": 3},
"sequence_mapping_int": {"bar": [3], "foo": [1, 2]},
}