Skip to content

Commit

Permalink
Merge pull request #18788 from nsoranzo/release_24.0_TypeError_discri…
Browse files Browse the repository at this point in the history
…minator

[24.0] Fix ``TypeError`` from Pydantic 2.9.0
  • Loading branch information
nsoranzo committed Sep 7, 2024
2 parents 0c9cc61 + 51e3ec6 commit 764dbb3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/galaxy/schema/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Field,
field_validator,
)
from typing_extensions import Annotated

from galaxy.schema.schema import (
AnnotationField,
Expand Down Expand Up @@ -189,19 +190,21 @@ class StoredWorkflowDetailed(StoredWorkflowSummary):
)
steps: Dict[
int,
Union[
InputDataStep,
InputDataCollectionStep,
InputParameterStep,
PauseStep,
ToolStep,
SubworkflowStep,
Annotated[
Union[
InputDataStep,
InputDataCollectionStep,
InputParameterStep,
PauseStep,
ToolStep,
SubworkflowStep,
],
Field(discriminator="type"),
],
] = Field(
{},
title="Steps",
description="A dictionary with information about all the steps of the workflow.",
discriminator="type",
)
importable: Optional[bool] = Field(
...,
Expand Down

0 comments on commit 764dbb3

Please sign in to comment.