Updated to python3.10

This commit is contained in:
2022-04-30 17:15:26 +02:00
parent 588f93f7b1
commit fd68d25a1d
24 changed files with 28 additions and 32 deletions

View File

@@ -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