fix: fix pydantic support to 2.7.x

Pydantic 2.7.x does not support a second parameter in model validators with mode="after"
This commit is contained in:
Lucas Gomide
2025-06-16 17:09:52 -03:00
parent d92382b6cf
commit ca205372f9

View File

@@ -20,7 +20,8 @@ class FlowTrackable(BaseModel):
)
@model_validator(mode="after")
def _set_parent_flow(self, max_depth: int = 5) -> "FlowTrackable":
def _set_parent_flow(self) -> "FlowTrackable":
max_depth = 5
frame = inspect.currentframe()
try: