We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a5828e5 + 74b6cda commit db5f292Copy full SHA for db5f292
wtforms_bootstrap5/registry.py
@@ -10,7 +10,7 @@
10
from .helpers import traverse_base_classes
11
12
# Union type of form element
13
-FormElement = Field | Form
+FormElement = typing.Union[Field, Form]
14
# Type for form element renderer
15
FormElementRenderer = typing.Callable[["RenderContext", FormElement], Markup]
16
0 commit comments