Fixed type param for get_services #404
This commit is contained in:
parent
284318bb10
commit
f9caf59180
@ -31,7 +31,7 @@ class Application(DiscordBotApplicationABC):
|
|||||||
self._translation: TranslationServiceABC = services.get_service(TranslationServiceABC)
|
self._translation: TranslationServiceABC = services.get_service(TranslationServiceABC)
|
||||||
self._t: TranslatePipe = services.get_service(TranslatePipe)
|
self._t: TranslatePipe = services.get_service(TranslatePipe)
|
||||||
# internal stuff
|
# internal stuff
|
||||||
self._tasks = services.get_services(list[TaskABC])
|
self._tasks = services.get_services(TaskABC)
|
||||||
|
|
||||||
self._feature_flags: FeatureFlagsSettings = config.get_configuration(FeatureFlagsSettings)
|
self._feature_flags: FeatureFlagsSettings = config.get_configuration(FeatureFlagsSettings)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class SeederService:
|
|||||||
|
|
||||||
async def seed(self):
|
async def seed(self):
|
||||||
self._logger.info(__name__, f"Seed data")
|
self._logger.info(__name__, f"Seed data")
|
||||||
for seeder in self._services.get_services(list[DataSeederABC]):
|
for seeder in self._services.get_services(DataSeederABC):
|
||||||
seeder: DataSeederABC = seeder
|
seeder: DataSeederABC = seeder
|
||||||
self._logger.debug(__name__, f"Starting seeder {type(seeder).__name__}")
|
self._logger.debug(__name__, f"Starting seeder {type(seeder).__name__}")
|
||||||
await seeder.seed()
|
await seeder.seed()
|
||||||
|
Loading…
Reference in New Issue
Block a user