Skip to content

Commit 1e1bf36

Browse files
committed
hatch fmt
1 parent 0cd8218 commit 1e1bf36

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/reactpy_django/forms/utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
from __future__ import annotations
22

3-
from typing import Any, Sequence
3+
from typing import TYPE_CHECKING, Any
44

55
from django.forms import BooleanField, Form, ModelForm, ModelMultipleChoiceField, MultipleChoiceField, NullBooleanField
6-
from reactpy import Ref
6+
7+
if TYPE_CHECKING:
8+
from collections.abc import Sequence
9+
10+
from reactpy import Ref
711

812

913
def convert_form_fields(data: dict[str, Any], initialized_form: Form | ModelForm) -> None:
@@ -22,7 +26,7 @@ def validate_form_args(
2226
top_children_count: Ref[int],
2327
bottom_children: Sequence,
2428
bottom_children_count: Ref[int],
25-
form: type[Form] | type[ModelForm],
29+
form: type[Form | ModelForm],
2630
) -> None:
2731
# Validate the provided arguments
2832
if len(top_children) != top_children_count.current or len(bottom_children) != bottom_children_count.current:

0 commit comments

Comments
 (0)