@@ -149,7 +149,7 @@ def command(
149
149
150
150
151
151
def command (
152
- name : t .Union [str , t .Callable , None ] = None ,
152
+ name : t .Union [str , t .Callable [..., t . Any ] , None ] = None ,
153
153
cls : t .Optional [t .Type [Command ]] = None ,
154
154
** attrs : t .Any ,
155
155
) -> t .Union [Command , t .Callable [..., Command ]]:
@@ -182,7 +182,7 @@ def command(
182
182
appended to the end of the list.
183
183
"""
184
184
185
- func : t .Optional [t .Callable ] = None
185
+ func : t .Optional [t .Callable [..., t . Any ] ] = None
186
186
187
187
if callable (name ):
188
188
func = name
@@ -228,7 +228,7 @@ def decorator(f: t.Callable[..., t.Any]) -> Command:
228
228
229
229
@t .overload
230
230
def group (
231
- __func : t .Callable ,
231
+ __func : t .Callable [..., t . Any ] ,
232
232
) -> Group :
233
233
...
234
234
@@ -242,7 +242,7 @@ def group(
242
242
243
243
244
244
def group (
245
- name : t .Union [str , t .Callable , None ] = None , ** attrs : t .Any
245
+ name : t .Union [str , t .Callable [..., t . Any ] , None ] = None , ** attrs : t .Any
246
246
) -> t .Union [Group , t .Callable [[F ], Group ]]:
247
247
"""Creates a new :class:`Group` with a function as callback. This
248
248
works otherwise the same as :func:`command` just that the `cls`
0 commit comments