Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
updated comments
  • Loading branch information
Alandlt15 authored Jan 29, 2025
1 parent 28c6eaf commit 26cf397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pysquared/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ def set_bool(self, key: str, value: bool) -> None:
self._config[key] = value

def set_list(self, key: str, value: str) -> None:
"""Sets the string value from a list inside of the config dictionary
"""Adds the string value to the list specified by the key inside of the config dictionary
Does not save value to disk, will not persist through reboots
"""
self._config[key].append(value)

def set_dict(self, config_key: str, dict_key: str, dict_value: float) -> None:
"""Sets the float value to the dict in config.json
"""Sets the float value to the dictionary inside of the config dictionary
Does not save value to disk, will not persist through reboots
"""
self._config[config_key][dict_key] = dict_value
Expand Down

0 comments on commit 26cf397

Please sign in to comment.