reflex icon indicating copy to clipboard operation
reflex copied to clipboard

reflex 0.6.0 typing.Literal rasie TypeError

Open yutayouguan opened this issue 1 year ago β€’ 2 comments

Describe the bug upgrade reflex 0.6.0 typing.Literal rasie TypeError

Expected behavior TypeError: Unsupported type typing.Literal['xs', 'sm', 'md', 'lg', 'xl'] for guess_type.

Screenshots image

Specifics (please complete the following information):

  • Python Version: 3.12.3
  • Reflex Version: 0.6.0
  • OS: macOS 15
  • Browser (Optional): Arc

yutayouguan avatar Sep 25 '24 02:09 yutayouguan

Do you have repro code? Were doing a follow up release on Monday to sweep up any issues that might have slipped the .0

masenf avatar Sep 25 '24 02:09 masenf

Do you have repro code? Were doing a follow up release on Monday to sweep up any issues that might have slipped the .0


Size = Literal["xs", "sm", "md", "lg", "xl"]

class ResizableCard(rx.ComponentState):
    """Resizable card component."""

    id: str = "" 
    size: Size = "xs"
    title: str = ""


yutayouguan avatar Sep 27 '24 08:09 yutayouguan

Hi, any update on this issue ?

BenedictusAryo avatar Oct 04 '24 10:10 BenedictusAryo