Skip to content

Commit 4090472

Browse files
committed
switched back to use the update_forward_refs function as we need to support pydantic v1
1 parent 8b91618 commit 4090472

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)