Skip to content

Commit 036b05b

Browse files
committed
Rebase into models.
1 parent 925b450 commit 036b05b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

lib/galaxy/tool_util/parameters/models.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ def pydantic_template(self, state_representation: StateRepresentationT) -> Dynam
515515

516516
extra_kwd = {test_param_name: (Union[str, bool], initialize_test)}
517517
when_types.append(
518-
cast(Type[BaseModel],
518+
cast(
519+
Type[BaseModel],
519520
Annotated[
520521
create_field_model(
521522
parameters,
@@ -525,7 +526,7 @@ def pydantic_template(self, state_representation: StateRepresentationT) -> Dynam
525526
extra_validators=extra_validators,
526527
),
527528
Tag(str(discriminator)),
528-
]
529+
],
529530
)
530531
)
531532
if when.is_default_when:
@@ -537,10 +538,7 @@ def pydantic_template(self, state_representation: StateRepresentationT) -> Dynam
537538
extra_kwd=extra_kwd,
538539
extra_validators={},
539540
)
540-
when_types.append(
541-
cast(Type[BaseModel],
542-
Annotated[default_type, Tag("__absent__")])
543-
)
541+
when_types.append(cast(Type[BaseModel], Annotated[default_type, Tag("__absent__")]))
544542

545543
def model_x_discriminator(v: Any) -> str:
546544
if test_param_name not in v:

0 commit comments

Comments
 (0)