From ef935366d3efcf6858ae32d8ef521002d09cd717 Mon Sep 17 00:00:00 2001 From: ArtemIsmagilov Date: Fri, 19 Jul 2024 23:48:42 +0400 Subject: [PATCH] revert line `islice` --- mmpy_bot/function.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmpy_bot/function.py b/mmpy_bot/function.py index a393f2da..737754ef 100644 --- a/mmpy_bot/function.py +++ b/mmpy_bot/function.py @@ -112,7 +112,7 @@ def __init__( if _function is not None: self.name = _function.__qualname__ - argspec = list(islice(inspect.signature(_function).parameters.keys(), 2)) + argspec = list(inspect.signature(_function).parameters)[:2] if argspec != ["self", "message"]: raise TypeError( "Any message listener function should at least have the positional"