[#331] Fix type hints for service methods

Signed-off-by: a.berezin <a.berezin@yadro.com>
This commit is contained in:
Andrey Berezin 2024-12-03 14:55:12 +03:00
parent 0e040d2722
commit 8ec7e21e84

View file

@ -91,10 +91,10 @@ class ClusterNode:
config_str = yaml.dump(new_config) config_str = yaml.dump(new_config)
shell.exec(f"echo '{config_str}' | sudo tee {config_file_path}") shell.exec(f"echo '{config_str}' | sudo tee {config_file_path}")
def config(self, service_type: ServiceClass) -> ServiceConfigurationYml: def config(self, service_type: type[ServiceClass]) -> ServiceConfigurationYml:
return self.service(service_type).config return self.service(service_type).config
def service(self, service_type: ServiceClass) -> ServiceClass: def service(self, service_type: type[ServiceClass]) -> ServiceClass:
""" """
Get a service cluster node of specified type. Get a service cluster node of specified type.