Skip to content

Commit

Permalink
make computed var generic over mapping (#4762)
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 authored Feb 6, 2025
1 parent 49e48a5 commit 88eae92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reflex/vars/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2219,10 +2219,10 @@ def __get__(

@overload
def __get__(
self: ComputedVar[Mapping[DICT_KEY, DICT_VAL]],
self: ComputedVar[MAPPING_TYPE],
instance: None,
owner: Type,
) -> ObjectVar[Mapping[DICT_KEY, DICT_VAL]]: ...
) -> ObjectVar[MAPPING_TYPE]: ...

@overload
def __get__(
Expand Down Expand Up @@ -2465,10 +2465,10 @@ def __get__(

@overload
def __get__(
self: AsyncComputedVar[Mapping[DICT_KEY, DICT_VAL]],
self: AsyncComputedVar[MAPPING_TYPE],
instance: None,
owner: Type,
) -> ObjectVar[Mapping[DICT_KEY, DICT_VAL]]: ...
) -> ObjectVar[MAPPING_TYPE]: ...

@overload
def __get__(
Expand Down

0 comments on commit 88eae92

Please sign in to comment.