Skip to content

Commit

Permalink
Merge branch 'fix/check-typings' of https://github.com/elenakrittik/d…
Browse files Browse the repository at this point in the history
…isnake into fix/check-typings
  • Loading branch information
elenakrittik committed Nov 4, 2023
2 parents ea7bccf + 9d8be27 commit c7f44f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion disnake/ext/commands/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,8 @@ def app_check_any(*checks: AppCheck) -> Callable[[T], T]:
try:
return check_any(*checks) # type: ignore # impl is the same, typings are different
except TypeError as e:
raise TypeError(str(e).replace("commands.check", "commands.app_check")) # fix err message
msg = str(e).replace("commands.check", "commands.app_check") # fix err message
raise TypeError(msg) from None


def has_role(item: Union[int, str]) -> Callable[[T], T]:
Expand Down

0 comments on commit c7f44f9

Please sign in to comment.