Skip to content

Commit 8ab7f23

Browse files
committed
Fix borked type hints
1 parent 67966e2 commit 8ab7f23

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/reactpy_django/pyscript/components.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
from __future__ import annotations
22

3+
from typing import TYPE_CHECKING
34
from uuid import uuid4
45

56
from reactpy import component, hooks, html
6-
from reactpy.types import ComponentType, VdomDict
77

88
from reactpy_django.html import pyscript
99
from reactpy_django.pyscript.utils import render_pyscript_template
1010
from reactpy_django.utils import reactpy_to_string
1111

12+
if TYPE_CHECKING:
13+
from reactpy.types import ComponentType, VdomDict
14+
1215

1316
@component
1417
def _pyscript_component(

src/reactpy_django/utils.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from fnmatch import fnmatch
1111
from functools import wraps
1212
from importlib import import_module
13-
from typing import TYPE_CHECKING, Any, Awaitable, Callable
13+
from typing import TYPE_CHECKING, Any, Callable
1414
from uuid import UUID, uuid4
1515

1616
import dill
@@ -35,7 +35,6 @@
3535
InvalidHostError,
3636
ViewDoesNotExistError,
3737
)
38-
from reactpy_django.types import FuncParams, Inferred
3938

4039
if TYPE_CHECKING:
4140
from collections.abc import Awaitable, Mapping, Sequence

0 commit comments

Comments
 (0)