fix(hotreload): ruff fix

This commit is contained in:
cswimr 2025-01-26 14:10:33 +00:00
parent 0b60a2df66
commit 2543563af1
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -52,7 +52,7 @@ class HotReload(commands.Cog):
async def get_paths(self) -> tuple[Path]:
"""Retrieve user defined paths."""
cog_manager = self.bot._cog_mgr
cog_manager = self.bot._cog_mgr # noqa: SLF001 # We have to use this private method because there is no public API to get user defined paths
cog_paths = await cog_manager.user_defined_paths()
return (Path(path) for path in cog_paths)