fixing some pylint stuff

This commit is contained in:
SeaswimmerTheFsh 2023-06-21 17:16:33 -04:00
parent 6a28033d52
commit 58f7aa6ebf
2 changed files with 5 additions and 4 deletions

View file

@ -4,4 +4,5 @@
missing-function-docstring, missing-function-docstring,
missing-class-docstring, missing-class-docstring,
line-too-long, line-too-long,
too-many-arguments too-many-arguments,
duplicate-code

View file

@ -31,11 +31,11 @@ class CustomEmbed(revolt.SendableEmbed):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.footer: str | None = None self.footer: str | None = None
def add_field(self, name = None, value = None, inline = None): def add_field(self, name = None, value = None):
if name is None and value is None: if name is None and value is None:
raise ValueError("A 'name' or 'value' must be given") raise ValueError("A 'name' or 'value' must be given")
if self.description == None: if self.description is None:
self.description = "" self.description = ""
else: else:
self.description += "\n" self.description += "\n"
@ -52,7 +52,7 @@ class CustomEmbed(revolt.SendableEmbed):
def to_dict(self): def to_dict(self):
if self.footer is not None: if self.footer is not None:
if self.description == None: if self.description is None:
self.description = "" self.description = ""
else: else:
self.description += "\n\n" self.description += "\n\n"