Skip to content

Commit a267f1a

Browse files
author
Wizard1209
committed
fix linting
1 parent fc9481b commit a267f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dipdup/indexes/tezos_operations/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def extract_root_outer_type(storage_type: type[BaseModel]) -> type[BaseModel]:
2828
root_field = storage_type.model_fields['root']
2929
if not root_field.is_required():
3030
# NOTE: Optional is a magic _SpecialForm
31-
return cast('type[BaseModel]', Optional[root_field.annotation]) # noqa: UP045
31+
return cast('type[BaseModel]', Optional[root_field.annotation]) # noqa: UP007
3232

3333
return root_field.annotation # type: ignore[return-value]
3434

0 commit comments

Comments
 (0)