Skip to content

Commit

Permalink
fix(parser): fix pylint warnings with correct way
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed Nov 20, 2024
1 parent a1de10d commit 6508468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions khl/command/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def _get_param_type(param: Union[inspect.Parameter, None]):
return param.annotation


def _wrap_one_param_func(func: Callable) -> Callable: # pylint: disable=unused-argument
def wrapper(msg: Message, client: Client, token: str): # pylint: disable=unused-argument
def _wrap_one_param_func(func: Callable) -> Callable:
def wrapper(_msg: Message, _client: Client, token: str):
return func(token)
return wrapper

Expand Down

0 comments on commit 6508468

Please sign in to comment.