Skip to content

Commit 3a833ea

Browse files
Merge pull request #1956 from elementary-data/rollback-to-pydantic1-support
switched back to use the update_forward_refs function as we need to s…
2 parents 8b91618 + 4090472 commit 3a833ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

elementary/messages/blocks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class ActionsBlock(BaseBlock):
113113
"LineBlock",
114114
]
115115

116-
LineBlock.model_rebuild()
116+
LineBlock.update_forward_refs()
117117

118118

119119
class HeaderBlock(BaseBlock):
@@ -184,4 +184,4 @@ class ExpandableBlock(BaseBlock):
184184
]
185185

186186
# Update forward references for recursive types
187-
ExpandableBlock.model_rebuild()
187+
ExpandableBlock.update_forward_refs()

elementary/messages/message_body.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ class MessageBody(BaseModel):
3939
id: Optional[str] = None
4040

4141

42-
MessageBody.model_rebuild()
42+
MessageBody.update_forward_refs()

0 commit comments

Comments
 (0)