Skip to content

Commit

Permalink
tweak: python < 3.10 annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
rgimen3z committed Mar 4, 2024
1 parent 7da9c0f commit ac842e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python-fastui/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class ToolEnum(str, Enum):

class FormEnumWithOptionalEnum(BaseModel):
job_name: str
tool_required: ToolEnum | None = Field(
tool_required: Union[ToolEnum, None] = Field(
json_schema_extra={
# Override certain schema fields.
'placeholder': 'tool',
Expand Down

0 comments on commit ac842e4

Please sign in to comment.