Skip to content

Commit ad07cee

Browse files
committed
fix lint issues
1 parent d6e9b23 commit ad07cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aredis_om/model/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def get_outer_type(field: PydanticFieldInfo):
8181
elif not hasattr(field.annotation, "__args__"):
8282
return None
8383
else:
84-
return field.annotation.__args__[0]
84+
return field.annotation.__args__[0] # type: ignore
8585

8686

8787
class RedisModelError(Exception):
@@ -1368,7 +1368,7 @@ def outer_type_or_annotation(field: FieldInfo):
13681368
elif get_origin(field.annotation) == Literal:
13691369
return str
13701370
else:
1371-
return field.annotation.__args__[0]
1371+
return field.annotation.__args__[0] # type: ignore
13721372

13731373

13741374
class RedisModel(BaseModel, abc.ABC, metaclass=ModelMeta):

0 commit comments

Comments
 (0)