File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 119119ActionRowModalComponent : TypeAlias = "TextInput"
120120
121121# any child component type of action rows
122- ActionRowChildComponent : TypeAlias = ActionRowMessageComponent | ActionRowModalComponent
122+ ActionRowChildComponent : TypeAlias = Union [ ActionRowMessageComponent , ActionRowModalComponent ] # noqa: UP007
123123ActionRowChildComponentT = TypeVar ("ActionRowChildComponentT" , bound = ActionRowChildComponent )
124124
125125# valid `Section.accessory` types
154154 "Separator" ,
155155 "Container" ,
156156]
157- MessageTopLevelComponent : TypeAlias = MessageTopLevelComponentV1 | MessageTopLevelComponentV2
157+ MessageTopLevelComponent : TypeAlias = Union [ MessageTopLevelComponentV1 , MessageTopLevelComponentV2 ] # noqa: UP007
158158
159159
160160_SELECT_COMPONENT_TYPES = frozenset (
Original file line number Diff line number Diff line change 4848 "Separator" ,
4949 "Container" ,
5050]
51- MessageTopLevelComponent : TypeAlias = MessageTopLevelComponentV1 | MessageTopLevelComponentV2
51+ MessageTopLevelComponent : TypeAlias = Union [ MessageTopLevelComponentV1 , MessageTopLevelComponentV2 ] # noqa: UP007
5252
5353# valid modal component types (separate type with ActionRow until fully deprecated)
5454ModalTopLevelComponent_ : TypeAlias = Union [
You can’t perform that action at this time.
0 commit comments