fix: fix pydantic support to 2.7.x (#3016)
Some checks failed
Notify Downstream / notify-downstream (push) Has been cancelled
Mark stale issues and pull requests / stale (push) Has been cancelled

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:20:10 -03:00
committed by GitHub
parent d92382b6cf
commit db1e9e9b9a

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: