Skip to content

Commit a3861cf

Browse files
committed
use union
1 parent a4499da commit a3861cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/galileo/schema/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Metric(BaseModel):
4040
name: Union[str] = Field(
4141
description="The name of the metric you want to run a specific version of (ie: 'Sentence Density')."
4242
)
43-
version: int | None = Field(
43+
version: Union[int, None] = Field(
4444
default=None,
4545
description="The version of the metric (ie: 1, 2, 3, etc.). If None is provided, the 'default' version will be used.",
4646
)

0 commit comments

Comments
 (0)