Improved configuration and testing

This commit is contained in:
2020-11-29 11:32:35 +01:00
parent 44ffb4e574
commit b14446272a
10 changed files with 73 additions and 59 deletions

View File

@@ -98,7 +98,7 @@ class Configuration(ConfigurationBase):
self._print_error(__name__, f'Cannot load config file: {file}! -> {e}')
return {}
def add_configuration(self, key_type: type, value: object):
def add_configuration(self, key_type: type, value: ConfigurationModelBase):
self._config[key_type] = value
def get_configuration(self, search_type: type) -> ConfigurationModelBase: