We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
line
branches
BeamLine
1 parent 89a5e53 commit d45ba9dCopy full SHA for d45ba9d
1 file changed
src/pals/kinds/Lattice.py
@@ -11,7 +11,7 @@ class Lattice(BaseElement):
11
12
kind: Literal["Lattice"] = "Lattice"
13
14
- line: List[get_all_elements_as_annotation()]
+ branches: List[Annotated[Union[BeamLine], Field(discriminator="kind")]]
15
16
@model_validator(mode="before")
17
@classmethod
0 commit comments