Skip to content

Commit a1de10d

Browse files
committed
fix(parser): pylint warnings from TWT233#236
1 parent 391d0cc commit a1de10d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

khl/command/parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""parser: component used in command args handling, convert string token to fit the command signature"""
2-
import asyncio
32
import copy
43
import inspect
54
import logging
@@ -28,8 +27,8 @@ def _get_param_type(param: Union[inspect.Parameter, None]):
2827
return param.annotation
2928

3029

31-
def _wrap_one_param_func(func: Callable) -> Callable:
32-
def wrapper(msg: Message, client: Client, token: str):
30+
def _wrap_one_param_func(func: Callable) -> Callable: # pylint: disable=unused-argument
31+
def wrapper(msg: Message, client: Client, token: str): # pylint: disable=unused-argument
3332
return func(token)
3433
return wrapper
3534

0 commit comments

Comments
 (0)