Skip to content

Commit

Permalink
fix: fix operand string
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Oct 6, 2023
1 parent a97eda6 commit cfe3ad5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/ductile/ui/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(
*,
style: ButtonStyle,
custom_id: str | None = None,
on_click: "InteractionCallback" | None = None,
on_click: "InteractionCallback | None" = None,
) -> None:
__style = discord.ButtonStyle[style.get("color", "grey")]
__disabled = style.get("disabled", False)
Expand Down
2 changes: 1 addition & 1 deletion src/ductile/ui/modal.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def __init__( # noqa: PLR0913
inputs: list[TextInput],
timeout: float | None = None,
custom_id: str | None = None,
on_submit: "ModalCallback" | None = None,
on_submit: "ModalCallback | None" = None,
) -> None:
__d = {
"title": title,
Expand Down
10 changes: 5 additions & 5 deletions src/ductile/ui/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__( # noqa: PLR0913
style: SelectStyle,
options: list[SelectOption],
custom_id: str | None = None,
on_select: "SelectCallback" | None = None,
on_select: "SelectCallback | None" = None,
) -> None:
__disabled = style.get("disabled", False)
__placeholder = style.get("placeholder", None)
Expand Down Expand Up @@ -105,7 +105,7 @@ def __init__(
config: ChannelSelectConfig,
style: SelectStyle,
custom_id: str | None = None,
on_select: "ChannelSelectCallback" | None = None,
on_select: "ChannelSelectCallback | None" = None,
) -> None:
__disabled = style.get("disabled", False)
__placeholder = style.get("placeholder", None)
Expand Down Expand Up @@ -135,7 +135,7 @@ def __init__(
config: RoleSelectConfig,
style: SelectStyle,
custom_id: str | None = None,
on_select: "RoleSelectCallback" | None = None,
on_select: "RoleSelectCallback | None" = None,
) -> None:
__disabled = style.get("disabled", False)
__placeholder = style.get("placeholder", None)
Expand Down Expand Up @@ -164,7 +164,7 @@ def __init__(
config: MentionableSelectConfig,
style: SelectStyle,
custom_id: str | None = None,
on_select: "MentionableSelectCallback" | None = None,
on_select: "MentionableSelectCallback | None" = None,
) -> None:
__disabled = style.get("disabled", False)
__placeholder = style.get("placeholder", None)
Expand Down Expand Up @@ -193,7 +193,7 @@ def __init__(
config: UserSelectConfig,
style: SelectStyle,
custom_id: str | None = None,
on_select: "UserSelectCallback" | None = None,
on_select: "UserSelectCallback | None" = None,
) -> None:
__disabled = style.get("disabled", False)
__placeholder = style.get("placeholder", None)
Expand Down
2 changes: 1 addition & 1 deletion src/ductile/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(
loop: asyncio.AbstractEventLoop | None = None,
) -> None:
self._loop = loop or asyncio.get_event_loop()
self._controller: "ViewController" | None = None
self._controller: "ViewController | None" = None
self.__logger = get_logger(__name__)

def render(self) -> ViewObject:
Expand Down

0 comments on commit cfe3ad5

Please sign in to comment.