From 7743b566bd30a7231917c523ce91638186731a21 Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Thu, 15 Feb 2024 17:46:33 +0100 Subject: [PATCH] Fix the command decorator typing. --- cutekit/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cutekit/cli.py b/cutekit/cli.py index 0c4ad95..1054421 100644 --- a/cutekit/cli.py +++ b/cutekit/cli.py @@ -687,7 +687,7 @@ def _resolvePath(path: list[str]) -> Command: 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): schema = Schema.extractFromCallable(fn) path = _splitPath(longName)