black formation

This commit is contained in:
grey-cat-1908 2024-08-21 08:44:25 +00:00
parent a1e46dd7bb
commit af5b759c16
2 changed files with 7 additions and 2 deletions

View file

@ -83,7 +83,9 @@ class SelectorValue(BaseValue):
raise ValueError(AnswerError.TOO_MANY_SELECTED.value) raise ValueError(AnswerError.TOO_MANY_SELECTED.value)
Value = Annotated[Union[SelectorValue, TextValue, ScaleValue], Field(discriminator='question_type')] Value = Annotated[
Union[SelectorValue, TextValue, ScaleValue], Field(discriminator="question_type")
]
class AnswerData(BaseModel): class AnswerData(BaseModel):

View file

@ -131,7 +131,10 @@ class SelectorQuestion(BaseQuestion):
return v return v
Question = Annotated[Union[SelectorQuestion, TextQuestion, ScaleQuestion], Field(discriminator='question_type')] Question = Annotated[
Union[SelectorQuestion, TextQuestion, ScaleQuestion],
Field(discriminator="question_type"),
]
class Page(BaseModel): class Page(BaseModel):