Skip to content

Commit

Permalink
style: double quote & typing
Browse files Browse the repository at this point in the history
  • Loading branch information
SheffeyG committed Sep 29, 2024
1 parent 9434ee3 commit 45db496
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion settings.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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: ...
Expand Down

0 comments on commit 45db496

Please sign in to comment.