Skip to content

Commit

Permalink
Update menu.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FasterSpeeding authored Dec 9, 2024
1 parent abcf069 commit 6e48b1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tanjun/commands/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,7 @@ def __init__(
| _MessageCallbackSigT
| _AnyCommandT[_MessageCallbackSigT]
),
# TODO: should be _MenuTypeT but pyright broke
type_: typing.Any,
type_: _MenuTypeT,
name: str | collections.Mapping[str, str],
/,
*,
Expand Down Expand Up @@ -534,7 +533,7 @@ def __init__(
self._names = names
self._parent: tanjun.SlashCommandGroup | None = None
self._tracked_command: hikari.ContextMenuCommand | None = None
self._type: _MenuTypeT = type_ # MyPy bug causes this to need an explicit annotation.
self._type: _MenuTypeT = type_
self._wrapped_command = _wrapped_command

if typing.TYPE_CHECKING:
Expand Down

0 comments on commit 6e48b1d

Please sign in to comment.