From 27ed574b63fdaf9a0c118c924d4875569758f0de Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Thu, 11 Jan 2024 14:04:06 -0800 Subject: [PATCH] aspectratio: fix docstring and extra literal def (#2379) --- reflex/components/radix/themes/components/aspectratio.py | 6 ++---- reflex/components/radix/themes/components/aspectratio.pyi | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/reflex/components/radix/themes/components/aspectratio.py b/reflex/components/radix/themes/components/aspectratio.py index 3a89e4974..47ba45577 100644 --- a/reflex/components/radix/themes/components/aspectratio.py +++ b/reflex/components/radix/themes/components/aspectratio.py @@ -1,5 +1,5 @@ """Interactive components provided by @radix-ui/themes.""" -from typing import Literal, Union +from typing import Union from reflex.vars import Var @@ -8,11 +8,9 @@ from ..base import ( RadixThemesComponent, ) -LiteralSwitchSize = Literal["1", "2", "3", "4"] - class AspectRatio(CommonMarginProps, RadixThemesComponent): - """A toggle switch alternative to the checkbox.""" + """Displays content with a desired ratio.""" tag = "AspectRatio" diff --git a/reflex/components/radix/themes/components/aspectratio.pyi b/reflex/components/radix/themes/components/aspectratio.pyi index 798bb8f13..c24028f85 100644 --- a/reflex/components/radix/themes/components/aspectratio.pyi +++ b/reflex/components/radix/themes/components/aspectratio.pyi @@ -7,12 +7,10 @@ from typing import Any, Dict, Literal, Optional, Union, overload from reflex.vars import Var, BaseVar, ComputedVar from reflex.event import EventChain, EventHandler, EventSpec from reflex.style import Style -from typing import Literal, Union +from typing import Union from reflex.vars import Var from ..base import CommonMarginProps, RadixThemesComponent -LiteralSwitchSize = Literal["1", "2", "3", "4"] - class AspectRatio(CommonMarginProps, RadixThemesComponent): @overload @classmethod