We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5068e5 commit 2455394Copy full SHA for 2455394
aredis_om/model/encoders.py
@@ -90,7 +90,7 @@ def jsonable_encoder(
90
sqlalchemy_safe=sqlalchemy_safe,
91
)
92
if dataclasses.is_dataclass(obj):
93
- return dataclasses.asdict(obj) # type: ignore[call-overload]
+ return dataclasses.asdict(obj) # type: ignore
94
if isinstance(obj, Enum):
95
return obj.value
96
if isinstance(obj, PurePath):
aredis_om/model/model.py
@@ -1432,7 +1432,8 @@ def outer_type_or_annotation(field):
1432
1433
class RedisModel(BaseModel, abc.ABC, metaclass=ModelMeta):
1434
pk: Optional[str] = Field(default=None, primary_key=True)
1435
- ConfigDict: ClassVar
+ if PYDANTIC_V2:
1436
+ ConfigDict: ClassVar
1437
1438
Meta = DefaultMeta
1439
0 commit comments