diff options
Diffstat (limited to 'generalresearch/models/morning/question.py')
| -rw-r--r-- | generalresearch/models/morning/question.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generalresearch/models/morning/question.py b/generalresearch/models/morning/question.py index 8a1f729..b64a44a 100644 --- a/generalresearch/models/morning/question.py +++ b/generalresearch/models/morning/question.py @@ -1,6 +1,6 @@ import json -from enum import Enum -from typing import Any, Dict, List, Literal, Optional, Self +from enum import StrEnum +from typing import Any, Literal, Self from uuid import UUID from pydantic import BaseModel, Field, field_validator, model_validator @@ -36,7 +36,7 @@ class MorningQuestionOption(BaseModel, frozen=True): order: int = Field() -class MorningQuestionType(str, Enum): +class MorningQuestionType(StrEnum): # The db stores these as a single letter # Geographic questions represent geographic areas within a country. |
