Skip to content

Commit 1f0f0a9

Browse files
committed
Clarify arbitrary_types_allowed usage
1 parent 1635915 commit 1f0f0a9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmdstanpy/stanfit/metadata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ class MetricInfo(BaseModel):
9494
metric_type: Literal["diag_e", "dense_e", "unit_e"]
9595
inv_metric: np.ndarray
9696

97+
# allows ndarray as pydantic attribute
9798
model_config = {"arbitrary_types_allowed": True}
9899

99100
@field_validator("inv_metric", mode="before")

0 commit comments

Comments
 (0)