Skip to content

Commit 080d0c0

Browse files
adhami3310masenf
authored andcommitted
make computed var generic over mapping (#4762)
1 parent ead2796 commit 080d0c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reflex/vars/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,10 +2219,10 @@ def __get__(
22192219

22202220
@overload
22212221
def __get__(
2222-
self: ComputedVar[Mapping[DICT_KEY, DICT_VAL]],
2222+
self: ComputedVar[MAPPING_TYPE],
22232223
instance: None,
22242224
owner: Type,
2225-
) -> ObjectVar[Mapping[DICT_KEY, DICT_VAL]]: ...
2225+
) -> ObjectVar[MAPPING_TYPE]: ...
22262226

22272227
@overload
22282228
def __get__(
@@ -2465,10 +2465,10 @@ def __get__(
24652465

24662466
@overload
24672467
def __get__(
2468-
self: AsyncComputedVar[Mapping[DICT_KEY, DICT_VAL]],
2468+
self: AsyncComputedVar[MAPPING_TYPE],
24692469
instance: None,
24702470
owner: Type,
2471-
) -> ObjectVar[Mapping[DICT_KEY, DICT_VAL]]: ...
2471+
) -> ObjectVar[MAPPING_TYPE]: ...
24722472

24732473
@overload
24742474
def __get__(

0 commit comments

Comments
 (0)