Skip to content

Commit

Permalink
revert line islice
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemIsmagilov committed Jul 19, 2024
1 parent acba80e commit ef93536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmpy_bot/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ef93536

Please sign in to comment.