Skip to content

Commit 2646a6d

Browse files
committed
fixing broken Pydantic v1 regression
1 parent c5068e5 commit 2646a6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aredis_om/model/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,8 @@ def outer_type_or_annotation(field):
14321432

14331433
class RedisModel(BaseModel, abc.ABC, metaclass=ModelMeta):
14341434
pk: Optional[str] = Field(default=None, primary_key=True)
1435-
ConfigDict: ClassVar
1435+
if PYDANTIC_V2:
1436+
ConfigDict: ClassVar
14361437

14371438
Meta = DefaultMeta
14381439

0 commit comments

Comments
 (0)