Skip to content

Commit

Permalink
hatch fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Dec 12, 2024
1 parent 0cd8218 commit 1e1bf36
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/reactpy_django/forms/utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from __future__ import annotations

from typing import Any, Sequence
from typing import TYPE_CHECKING, Any

from django.forms import BooleanField, Form, ModelForm, ModelMultipleChoiceField, MultipleChoiceField, NullBooleanField
from reactpy import Ref

if TYPE_CHECKING:
from collections.abc import Sequence

from reactpy import Ref


def convert_form_fields(data: dict[str, Any], initialized_form: Form | ModelForm) -> None:
Expand All @@ -22,7 +26,7 @@ def validate_form_args(
top_children_count: Ref[int],
bottom_children: Sequence,
bottom_children_count: Ref[int],
form: type[Form] | type[ModelForm],
form: type[Form | ModelForm],
) -> None:
# Validate the provided arguments
if len(top_children) != top_children_count.current or len(bottom_children) != bottom_children_count.current:
Expand Down

0 comments on commit 1e1bf36

Please sign in to comment.