Updated to python3.10
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
from collections import Callable
|
||||
|
||||
from cpl_cli.command_abc import CommandABC
|
||||
|
||||
|
||||
class CommandModel:
|
||||
|
||||
def __init__(self, name: str, aliases: list[str], command: Callable[CommandABC], is_workspace_needed: bool,
|
||||
def __init__(self, name: str, aliases: list[str], command: CommandABC, is_workspace_needed: bool,
|
||||
is_project_needed: bool, change_cwd: bool):
|
||||
self._name = name
|
||||
self._aliases = aliases
|
||||
@@ -23,7 +21,7 @@ class CommandModel:
|
||||
return self._aliases
|
||||
|
||||
@property
|
||||
def command(self) -> Callable[CommandABC]:
|
||||
def command(self) -> CommandABC:
|
||||
return self._command
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user