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

This commit is contained in:
pre-commit-ci[bot] 2024-11-16 11:41:42 +00:00
parent d8d097deab
commit 64f3cea069
1 changed files with 6 additions and 3 deletions

View File

@ -222,7 +222,6 @@ def _get_flat_fields_from_params(fields: List[ModelField]) -> List[ModelField]:
return fields_to_extract
def get_flat_params(dependant: Dependant) -> List[ModelField]:
flat_dependant = get_flat_dependant(dependant, skip_repeats=True)
path_params = _get_flat_fields_from_params(flat_dependant.path_params)
@ -754,10 +753,14 @@ def request_params_to_args(
fields_to_extract = fields
params_to_process: Dict[str, Any] = {}
model_fields = [field for field in fields if lenient_issubclass(field.type_, BaseModel)]
model_fields = [
field for field in fields if lenient_issubclass(field.type_, BaseModel)
]
if model_fields:
fields_to_extract = [
cached_field for field in fields for cached_field in get_cached_model_fields(field.type_)
cached_field
for field in fields
for cached_field in get_cached_model_fields(field.type_)
]
processed_keys = set()