Skip to content

Commit

Permalink
- Pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
soksanichenko committed Mar 16, 2024
1 parent b22dcfc commit 97916b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/lib/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class BotAvatar:
"""Class-singleton for saving of an avatar of the bot"""
__avatar__ = None

def __new__(cls, *args, **kwargs):
def __new__(cls, *args, **kwargs): # pylint: disable=unused-argument
if cls.__avatar__ is None:
cls.__avatar__ = cls.load_bot_avatar()
return cls.__avatar__
Expand Down
4 changes: 2 additions & 2 deletions sources/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ class Logger(logging.Logger):

def __new__(
cls,
*args, # pylint: disable=unused-argument
name: str = 'discord',
level: int = logging.INFO,
*args,
**kwargs,
**kwargs, # pylint: disable=unused-argument
):
if cls.__instance__ is None:
cls.__instance__ = logging.getLogger(name=name)
Expand Down

0 comments on commit 97916b8

Please sign in to comment.