Fix the command decorator typing.
This commit is contained in:
parent
cc9f7c7b3f
commit
7743b566bd
1 changed files with 1 additions and 1 deletions
|
@ -687,7 +687,7 @@ def _resolvePath(path: list[str]) -> Command:
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
def command(shortName: str, longName: str, description: str = "") -> Callable:
|
def command(shortName: Optional[str], longName: str, description: str = "") -> Callable:
|
||||||
def wrap(fn: Callable):
|
def wrap(fn: Callable):
|
||||||
schema = Schema.extractFromCallable(fn)
|
schema = Schema.extractFromCallable(fn)
|
||||||
path = _splitPath(longName)
|
path = _splitPath(longName)
|
||||||
|
|
Loading…
Reference in a new issue