Browse Source

Fix dep on aiohttp and a type signature

Kirk Trombley 4 years ago
parent
commit
d1b5f91906
2 changed files with 2 additions and 1 deletions
  1. 1 1
      lib/rollbot/decorators/as_command.py
  2. 1 0
      lib/setup.py

+ 1 - 1
lib/rollbot/decorators/as_command.py

@@ -102,7 +102,7 @@ def _on_command_impl(name: str, fn: Callable[..., Any]) -> Callable[..., Any]:
     return fn
 
 
-def as_command(arg: Union[str, Callable[[Message, Context], Any]]):
+def as_command(arg: Union[str, Callable[...]]) -> Callable[...]:
     if isinstance(arg, str):
         return lambda fn: _on_command_impl(arg, fn)
     else:

+ 1 - 0
lib/setup.py

@@ -11,5 +11,6 @@ setup(
     packages=["rollbot"],
     install_requires=[
         "aiosqlite",
+        "aiohttp",
     ],
 )