We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e9b23 commit ad07ceeCopy full SHA for ad07cee
aredis_om/model/model.py
@@ -81,7 +81,7 @@ def get_outer_type(field: PydanticFieldInfo):
81
elif not hasattr(field.annotation, "__args__"):
82
return None
83
else:
84
- return field.annotation.__args__[0]
+ return field.annotation.__args__[0] # type: ignore
85
86
87
class RedisModelError(Exception):
@@ -1368,7 +1368,7 @@ def outer_type_or_annotation(field: FieldInfo):
1368
elif get_origin(field.annotation) == Literal:
1369
return str
1370
1371
1372
1373
1374
class RedisModel(BaseModel, abc.ABC, metaclass=ModelMeta):
0 commit comments