Added logic to support global service provider #148

This commit is contained in:
2022-12-22 18:52:17 +01:00
parent c09f2f8e83
commit d600852bec
10 changed files with 102 additions and 41 deletions

View File

@@ -268,7 +268,7 @@ class Configuration(ConfigurationABC):
configuration.from_dict(value)
self.add_configuration(sub, configuration)
def add_configuration(self, key_type: Union[str, type], value: any):
def add_configuration(self, key_type: T, value: any):
self._config[key_type] = value
def create_console_argument(self, arg_type: ArgumentTypeEnum, token: str, name: str, aliases: list[str],