mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
[V3 Config] Driver code initial cleanup (#1315)
* Remove get_driver * Rename self.driver to self._driver * Do not unnecessarily pass the cog identifier * Remove unused import * Fix type annotation * Missed a keyword rename * Modify signature of get/set methods in drivers
This commit is contained in:
@@ -49,7 +49,7 @@ def config(json_driver):
|
||||
conf = Config(
|
||||
cog_name="PyTest",
|
||||
unique_identifier=str(uuid.uuid4()),
|
||||
driver_spawn=json_driver)
|
||||
driver=json_driver)
|
||||
yield conf
|
||||
conf._defaults = {}
|
||||
|
||||
@@ -63,7 +63,7 @@ def config_fr(json_driver):
|
||||
conf = Config(
|
||||
cog_name="PyTest",
|
||||
unique_identifier=str(uuid.uuid4()),
|
||||
driver_spawn=json_driver,
|
||||
driver=json_driver,
|
||||
force_registration=True
|
||||
)
|
||||
yield conf
|
||||
|
||||
Reference in New Issue
Block a user