Skip to content

Commit

Permalink
Remove repeated
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Sep 10, 2024
1 parent 96d9532 commit e18459e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/viser/_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,6 @@ class ResetGuiMessage(Message):

@dataclasses.dataclass
class GuiAddFolderMessage(Message, tag="GuiAddComponentMessage"):
order: float
order: float
id: str
label: str
Expand All @@ -627,7 +626,6 @@ class GuiAddFolderMessage(Message, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddMarkdownMessage(Message, tag="GuiAddComponentMessage"):
order: float
order: float
id: str
markdown: str
Expand All @@ -637,7 +635,6 @@ class GuiAddMarkdownMessage(Message, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddProgressBarMessage(Message, tag="GuiAddComponentMessage"):
order: float
order: float
id: str
value: float
Expand All @@ -649,7 +646,6 @@ class GuiAddProgressBarMessage(Message, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddPlotlyMessage(Message, tag="GuiAddComponentMessage"):
order: float
order: float
id: str
plotly_json_str: str
Expand All @@ -660,7 +656,6 @@ class GuiAddPlotlyMessage(Message, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddTabGroupMessage(Message, tag="GuiAddComponentMessage"):
order: float
order: float
id: str
container_id: str
Expand Down Expand Up @@ -698,7 +693,6 @@ class GuiCloseModalMessage(Message):

@dataclasses.dataclass
class GuiAddButtonMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
# All GUI elements currently need an `value` field.
# All GUI elements currently need an `value` field.
# This makes our job on the frontend easier.
value: bool
Expand All @@ -708,15 +702,13 @@ class GuiAddButtonMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddUploadButtonMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
color: Optional[Color]
color: Optional[Color]
icon_html: Optional[str]
mime_type: str


@dataclasses.dataclass
class GuiAddSliderMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
min: float
min: float
max: float
step: Optional[float]
Expand All @@ -727,7 +719,6 @@ class GuiAddSliderMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddMultiSliderMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
min: float
min: float
max: float
step: Optional[float]
Expand All @@ -739,7 +730,6 @@ class GuiAddMultiSliderMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddNumberMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: float
value: float
precision: int
step: float
Expand All @@ -750,24 +740,20 @@ class GuiAddNumberMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
@dataclasses.dataclass
class GuiAddRgbMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: Tuple[int, int, int]
value: Tuple[int, int, int]


@dataclasses.dataclass
class GuiAddRgbaMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: Tuple[int, int, int, int]
value: Tuple[int, int, int, int]


@dataclasses.dataclass
class GuiAddCheckboxMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: bool
value: bool


@dataclasses.dataclass
class GuiAddVector2Message(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: Tuple[float, float]
value: Tuple[float, float]
min: Optional[Tuple[float, float]]
max: Optional[Tuple[float, float]]
Expand All @@ -777,7 +763,6 @@ class GuiAddVector2Message(_GuiAddInputBase, tag="GuiAddComponentMessage"):

@dataclasses.dataclass
class GuiAddVector3Message(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: Tuple[float, float, float]
value: Tuple[float, float, float]
min: Optional[Tuple[float, float, float]]
max: Optional[Tuple[float, float, float]]
Expand All @@ -788,19 +773,16 @@ class GuiAddVector3Message(_GuiAddInputBase, tag="GuiAddComponentMessage"):
@dataclasses.dataclass
class GuiAddTextMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: str
value: str


@dataclasses.dataclass
class GuiAddDropdownMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: str
value: str
options: Tuple[str, ...]


@dataclasses.dataclass
class GuiAddButtonGroupMessage(_GuiAddInputBase, tag="GuiAddComponentMessage"):
value: str
value: str
options: Tuple[str, ...]

Expand Down

0 comments on commit e18459e

Please sign in to comment.