Skip to content

Commit 518d226

Browse files
committed
fix py3.9 type hints
1 parent f77f052 commit 518d226

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/reactpy_router/resolvers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import re
24
from typing import Any
35

src/reactpy_router/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
from __future__ import annotations
44

55
from dataclasses import dataclass, field
6-
from typing import Any, Callable, Literal, Sequence, TypeAlias, TypedDict, TypeVar
6+
from typing import Any, Callable, Literal, Sequence, TypedDict, TypeVar
77

88
from reactpy.core.vdom import is_vdom
99
from reactpy.types import ComponentType, Key
10-
from typing_extensions import Protocol, Self
10+
from typing_extensions import Protocol, Self, TypeAlias
1111

1212
ConversionFunc: TypeAlias = Callable[[str], Any]
1313
ConverterMapping: TypeAlias = dict[str, ConversionFunc]

0 commit comments

Comments
 (0)