Skip to content

Commit d45ba9d

Browse files
authored
Replace line with branches, list of BeamLines only
1 parent 89a5e53 commit d45ba9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pals/kinds/Lattice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Lattice(BaseElement):
1111

1212
kind: Literal["Lattice"] = "Lattice"
1313

14-
line: List[get_all_elements_as_annotation()]
14+
branches: List[Annotated[Union[BeamLine], Field(discriminator="kind")]]
1515

1616
@model_validator(mode="before")
1717
@classmethod

0 commit comments

Comments
 (0)