Skip to content

Commit 84ec0b6

Browse files
authored
move is_typeddict to typing (#5196)
1 parent 98171a5 commit 84ec0b6

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

reflex/utils/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
_GenericAlias, # pyright: ignore [reportAttributeAccessIssue]
2525
_SpecialGenericAlias, # pyright: ignore [reportAttributeAccessIssue]
2626
get_args,
27+
is_typeddict,
2728
)
2829
from typing import get_origin as get_origin_og
2930
from typing import get_type_hints as get_type_hints_og
@@ -34,7 +35,6 @@
3435
from sqlalchemy.ext.hybrid import hybrid_property
3536
from sqlalchemy.orm import DeclarativeBase, Mapped, QueryableAttribute, Relationship
3637
from typing_extensions import Self as Self
37-
from typing_extensions import is_typeddict
3838
from typing_extensions import override as override
3939

4040
import reflex

reflex/vars/object.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,17 @@
77
import typing
88
from collections.abc import Mapping
99
from inspect import isclass
10-
from typing import Any, NoReturn, TypeVar, get_args, get_type_hints, overload
10+
from typing import (
11+
Any,
12+
NoReturn,
13+
TypeVar,
14+
get_args,
15+
get_type_hints,
16+
is_typeddict,
17+
overload,
18+
)
1119

1220
from rich.markup import escape
13-
from typing_extensions import is_typeddict
1421

1522
from reflex.utils import types
1623
from reflex.utils.exceptions import VarAttributeError

0 commit comments

Comments
 (0)