fix(backup): disable SLF001
This commit is contained in:
parent
dbff8d0d2a
commit
6f0fee8275
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,9 @@ from redbot.core.bot import Red
|
|||
from redbot.core.utils.chat_formatting import bold, error, humanize_list, text_to_file
|
||||
|
||||
|
||||
# Disable Ruff & Pylint complaining about accessing private members
|
||||
# That's kind of necessary for this cog to function because the Downloader cog has a limited public API
|
||||
# ruff: noqa: SLF001 # Private member access
|
||||
# pylint: disable=protected-access
|
||||
class Backup(commands.Cog):
|
||||
"""A utility to make reinstalling repositories and cogs after migrating the bot far easier."""
|
||||
|
@ -74,7 +77,7 @@ class Backup(commands.Cog):
|
|||
if cog.repo_name == repo.name:
|
||||
cog_dict = {
|
||||
"name": cog.name,
|
||||
# "loaded": cog.name in ctx.bot.extensions.keys(),
|
||||
# "loaded": cog.name in ctx.bot.extensions.keys(), # noqa: ERA001
|
||||
# this functionality was planned but never implemented due to Red limitations
|
||||
# and the possibility of restoration functionality being added to Core
|
||||
"pinned": cog.pinned,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue