File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 Annotated ,
2020 Any ,
2121 Generic ,
22+ Literal ,
2223 Self ,
2324 TypeVar ,
2425 get_args ,
@@ -318,9 +319,9 @@ class Observable(BaseModel):
318319 #: Observable name.
319320 name : str | None = Field (alias = C .OBSERVABLE_NAME , default = None )
320321 #: Observable formula.
321- formula : sp .Basic | None = Field (alias = C .OBSERVABLE_FORMULA , default = None )
322+ formula : sp .Basic = Field (alias = C .OBSERVABLE_FORMULA )
322323 #: Noise formula.
323- noise_formula : sp .Basic | None = Field (alias = C .NOISE_FORMULA , default = None )
324+ noise_formula : sp .Basic = Field (alias = C .NOISE_FORMULA )
324325 #: Noise distribution.
325326 noise_distribution : NoiseDistribution = Field (
326327 alias = C .NOISE_DISTRIBUTION , default = NoiseDistribution .NORMAL
@@ -926,7 +927,7 @@ class Parameter(BaseModel):
926927 )
927928 #: Nominal value.
928929 nominal_value : Annotated [
929- float | None , BeforeValidator (_convert_nan_to_none )
930+ float | Literal [ "array" ] | None , BeforeValidator (_convert_nan_to_none )
930931 ] = Field (alias = C .NOMINAL_VALUE , default = None )
931932 #: Is the parameter to be estimated?
932933 estimate : bool = Field (alias = C .ESTIMATE , default = True )
You can’t perform that action at this time.
0 commit comments