diff --git a/main.py b/main.py index be0ab14..4ee700d 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ # Setup backend logger logger.setLevel(logging.DEBUG) -logger.info('[backend] Settings path: {}'.format(settingsDir)) +logger.info("[backend] Settings path: {}".format(settingsDir)) settings = SettingsManager(name="settings", settings_directory=settingsDir) settings.read() @@ -41,23 +41,23 @@ async def _uninstall(cls): @classmethod async def settings_read(cls): - logger.info('[backend] Reading settings') + logger.info("[backend] Reading settings") return settings.read() @classmethod async def settings_commit(cls): - logger.info('[backend] Saving settings') + logger.info("[backend] Saving settings") return settings.commit() @classmethod async def settings_getSetting(cls, data: GetSettingOptions): - logger.info('[backend] Get {}'.format(data['key'])) - return settings.getSetting(data['key'], data['defaults']) + logger.info("[backend] Get {}".format(data["key"])) + return settings.getSetting(data["key"], data["defaults"]) @classmethod async def settings_setSetting(cls, data: SetSettingOptions): - logger.info('[backend] Set {}: {}'.format(data['key'], data['value'])) - return settings.setSetting(data['key'], data['value']) + logger.info("[backend] Set {}: {}".format(data["key"], data["value"])) + return settings.setSetting(data["key"], data["value"]) @classmethod async def get_env(cls, env: str): diff --git a/settings.pyi b/settings.pyi index ea9f3a2..b570fdd 100644 --- a/settings.pyi +++ b/settings.pyi @@ -2,7 +2,7 @@ import typing class SettingsManager: - def __init__(self, name: str, settings_directory: str | None = None) -> typing.Any: ... + def __init__(self, name: str, settings_directory: str | None = None) -> None: ... def read(self) -> typing.Any: ... def commit(self) -> typing.Any: ... def getSetting(self, key: str, defaults: typing.Any) -> typing.Any: ...