Skip to content

Commit db5f292

Browse files
authored
Merge pull request #2 from mxsasha/patch-1
Improve compatibility with Python <3.10
2 parents a5828e5 + 74b6cda commit db5f292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wtforms_bootstrap5/registry.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .helpers import traverse_base_classes
1111

1212
# Union type of form element
13-
FormElement = Field | Form
13+
FormElement = typing.Union[Field, Form]
1414
# Type for form element renderer
1515
FormElementRenderer = typing.Callable[["RenderContext", FormElement], Markup]
1616

0 commit comments

Comments
 (0)