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

This commit is contained in:
pre-commit-ci[bot] 2023-10-06 10:54:21 +00:00
parent 52a483704a
commit 446f585430
1 changed files with 7 additions and 3 deletions

View File

@ -624,7 +624,11 @@ def is_uploadfile_sequence_annotation(annotation: Any) -> bool:
continue
return at_least_one
args = get_args(annotation)
return field_annotation_is_sequence(annotation) and args and all(
is_uploadfile_or_nonable_uploadfile_annotation(sub_annotation)
for sub_annotation in args
return (
field_annotation_is_sequence(annotation)
and args
and all(
is_uploadfile_or_nonable_uploadfile_annotation(sub_annotation)
for sub_annotation in args
)
)