Updated to python3.10
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import textwrap
|
||||
from collections import Callable
|
||||
|
||||
from cpl_core.configuration.configuration_abc import ConfigurationABC
|
||||
from cpl_core.console.foreground_color_enum import ForegroundColorEnum
|
||||
@@ -108,7 +107,7 @@ class GenerateService(CommandABC):
|
||||
template.write(value)
|
||||
template.close()
|
||||
|
||||
def _generate(self, schematic: str, name: str, template: Callable[TemplateFileABC]):
|
||||
def _generate(self, schematic: str, name: str, template: TemplateFileABC):
|
||||
"""
|
||||
Generates files by given schematic, name and template
|
||||
:param schematic:
|
||||
|
@@ -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
|
||||
|
@@ -18,7 +18,7 @@
|
||||
"Dependencies": [
|
||||
"cpl-core>=2022.6.1"
|
||||
],
|
||||
"PythonVersion": ">=3.8",
|
||||
"PythonVersion": ">=3.10",
|
||||
"PythonPath": {},
|
||||
"Classifiers": []
|
||||
},
|
||||
|
Reference in New Issue
Block a user