浏览代码

Fix dep on aiohttp and a type signature

Kirk Trombley 4 年之前
父节点
当前提交
d1b5f91906
共有 2 个文件被更改,包括 2 次插入1 次删除
  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",
     ],
 )