We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391d0cc commit a1de10dCopy full SHA for a1de10d
khl/command/parser.py
@@ -1,5 +1,4 @@
1
"""parser: component used in command args handling, convert string token to fit the command signature"""
2
-import asyncio
3
import copy
4
import inspect
5
import logging
@@ -28,8 +27,8 @@ def _get_param_type(param: Union[inspect.Parameter, None]):
28
27
return param.annotation
29
30
31
-def _wrap_one_param_func(func: Callable) -> Callable:
32
- def wrapper(msg: Message, client: Client, token: str):
+def _wrap_one_param_func(func: Callable) -> Callable: # pylint: disable=unused-argument
+ def wrapper(msg: Message, client: Client, token: str): # pylint: disable=unused-argument
33
return func(token)
34
return wrapper
35
0 commit comments