Skip to content

Commit

Permalink
Merge pull request #2 from mxsasha/patch-1
Browse files Browse the repository at this point in the history
Improve compatibility with Python <3.10
  • Loading branch information
fangpenlin authored Jul 28, 2022
2 parents a5828e5 + 74b6cda commit db5f292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wtforms_bootstrap5/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .helpers import traverse_base_classes

# Union type of form element
FormElement = Field | Form
FormElement = typing.Union[Field, Form]
# Type for form element renderer
FormElementRenderer = typing.Callable[["RenderContext", FormElement], Markup]

Expand Down

0 comments on commit db5f292

Please sign in to comment.