Skip to content

Commit

Permalink
fix: replace AindGenericType with typing.Any
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Aug 26, 2024
1 parent d5a25c2 commit 22b7af4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/aind_data_schema/core/quality_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@

from datetime import date
from enum import Enum
from typing import List, Literal, Optional
from typing import List, Literal, Optional, Any

from aind_data_schema_models.modalities import Modality
from aind_data_schema_models.units import
from pydantic import Field, BaseModel

from aind_data_schema.base import AindCoreModel, AindGeneric, AindGenericType, AindModel
from aind_data_schema.base import AindCoreModel, AindModel


class Status(str, Enum):
Expand All @@ -23,7 +22,7 @@ class Status(str, Enum):
class QCMetric(BaseModel):
"""Description of a single quality control metric"""
name: Optional[str] = Field(None, title="Metric name")
value: AindGenericType = Field(AindGeneric(), title="Metric value")
value: Any = Field(..., title="Metric value")
description: Optional[str] = Field(None, title="Metric description")
references: List[str] = Field(title="Metric reference URLs")

Expand Down

0 comments on commit 22b7af4

Please sign in to comment.