Skip to content

Commit

Permalink
fix tests for older python
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Dec 20, 2023
1 parent a6f541d commit 92c5741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/python-fastui/fastui/components/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class Form(BaseForm):


class ModelForm(BaseForm):
model: type[pydantic.BaseModel] = pydantic.Field(exclude=True)
model: _t.Type[pydantic.BaseModel] = pydantic.Field(exclude=True)
type: _t.Literal['ModelForm'] = 'ModelForm'

@pydantic.computed_field(alias='formFields')
Expand Down
2 changes: 2 additions & 0 deletions src/python-fastui/fastui/generate_typescript.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations as _annotations

import re
import subprocess
from pathlib import Path
Expand Down

0 comments on commit 92c5741

Please sign in to comment.