diff --git a/src/cpl_cli/live_server/live_server_service.py b/src/cpl_cli/live_server/live_server_service.py index defd24b8..34cfe7f8 100644 --- a/src/cpl_cli/live_server/live_server_service.py +++ b/src/cpl_cli/live_server/live_server_service.py @@ -1,6 +1,5 @@ import os import time -from abc import ABC from contextlib import suppress import psutil as psutil @@ -13,7 +12,7 @@ from cpl_cli.configuration.build_settings import BuildSettings from cpl_cli.live_server.live_server_thread import LiveServerThread -class LiveServerService(ABC, FileSystemEventHandler): +class LiveServerService(FileSystemEventHandler): def __init__(self, env: ApplicationEnvironmentABC, build_settings: BuildSettings): """ @@ -21,7 +20,6 @@ class LiveServerService(ABC, FileSystemEventHandler): :param env: :param build_settings: """ - ABC.__init__(self) FileSystemEventHandler.__init__(self) self._env = env diff --git a/src/cpl_cli/templates/generate/service_template.py b/src/cpl_cli/templates/generate/service_template.py index 65622711..98e5466d 100644 --- a/src/cpl_cli/templates/generate/service_template.py +++ b/src/cpl_cli/templates/generate/service_template.py @@ -14,13 +14,10 @@ class ServiceTemplate(TemplateFileABC): self._class_name = f'{String.first_to_upper(name)}{schematic_upper}' self._path = path self._value = textwrap.dedent("""\ - from cpl.dependency_injection import ServiceABC - - - class $Name(ServiceABC): + class $Name: def __init__(self): - ServiceABC.__init__(self) + pass """) @property