Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.2 uses Any for enum values #51

Open
Goldziher opened this issue Jul 4, 2024 · 0 comments
Open

v1.2 uses Any for enum values #51

Goldziher opened this issue Jul 4, 2024 · 0 comments

Comments

@Goldziher
Copy link

In v1.0

class Factacceptancestatus(str, enum.Enum):
    ACCEPTED = "ACCEPTED"
    DELETED = "DELETED"
    OPEN = "OPEN"

@dataclasses.dataclass()
class CriteriaEvidenceRecord:
    id: uuid.UUID
    assessment_criteria_id: uuid.UUID
    fact: str
    source: str
    details: str | None
    confidence: float
    signal: float
    status: Factacceptancestatus
    created_at: datetime.datetime
    updated_at: datetime.datetime
    deleted_at: datetime.datetime | None

In v1.2

class FactAcceptanceStatus(str, enum.Enum):
    ACCEPTED = "ACCEPTED"
    DELETED = "DELETED"
    OPEN = "OPEN"

@dataclasses.dataclass()
class CriteriaEvidenceRecord:
    id: uuid.UUID
    assessment_criteria_id: uuid.UUID
    fact: str
    source: str
    details: str | None
    confidence: float
    signal: float
    status: Any
    created_at: datetime.datetime
    updated_at: datetime.datetime
    deleted_at: datetime.datetime | None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant