We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d24b7 commit 9b2d93eCopy full SHA for 9b2d93e
1 file changed
reflex/vars/base.py
@@ -717,7 +717,7 @@ def __format__(self, format_spec: str) -> str:
717
return f"{constants.REFLEX_VAR_OPENING_TAG}{hashed_var}{constants.REFLEX_VAR_CLOSING_TAG}{self._js_expr}"
718
719
@overload
720
- def to(self, output: type[str]) -> StringVar: ...
+ def to(self, output: type[str]) -> StringVar: ... # pyright: ignore[reportOverlappingOverload]
721
722
723
def to(self, output: type[bool]) -> BooleanVar: ...
@@ -734,8 +734,8 @@ def to(self, output: type[Decimal]) -> NumberVar[Decimal]: ...
734
735
def to(
736
self,
737
- output: type[list] | type[tuple] | type[set],
738
- ) -> ArrayVar: ...
+ output: type[SEQUENCE_TYPE],
+ ) -> ArrayVar[SEQUENCE_TYPE]: ...
739
740
741
0 commit comments