fixing some pylint stuff
This commit is contained in:
parent
6a28033d52
commit
58f7aa6ebf
2 changed files with 5 additions and 4 deletions
|
@ -4,4 +4,5 @@
|
|||
missing-function-docstring,
|
||||
missing-class-docstring,
|
||||
line-too-long,
|
||||
too-many-arguments
|
||||
too-many-arguments,
|
||||
duplicate-code
|
||||
|
|
|
@ -31,11 +31,11 @@ class CustomEmbed(revolt.SendableEmbed):
|
|||
super().__init__(*args, **kwargs)
|
||||
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:
|
||||
raise ValueError("A 'name' or 'value' must be given")
|
||||
|
||||
if self.description == None:
|
||||
if self.description is None:
|
||||
self.description = ""
|
||||
else:
|
||||
self.description += "\n"
|
||||
|
@ -52,7 +52,7 @@ class CustomEmbed(revolt.SendableEmbed):
|
|||
|
||||
def to_dict(self):
|
||||
if self.footer is not None:
|
||||
if self.description == None:
|
||||
if self.description is None:
|
||||
self.description = ""
|
||||
else:
|
||||
self.description += "\n\n"
|
||||
|
|
Loading…
Reference in a new issue