Fix bugs with encoding of providers

* Made ConfigurationStore a dataclass so that it gets encoded correctly
  when using asdict
* Simplified the code around encoding providers

Fixes #325
Fixes #320
This commit is contained in:
Sumner Evans
2021-11-10 23:29:59 -07:00
parent cf46fe8b5e
commit 8e59702c99
2 changed files with 14 additions and 19 deletions

View File

@@ -170,6 +170,7 @@ class CacheMissError(Exception):
KEYRING_APP_NAME = "app.sublimemusic.SublimeMusic"
@dataclass
class ConfigurationStore(dict):
"""
This defines an abstract store for all configuration parameters for a given Adapter.