diff options
| author | 2019-08-20 13:13:56 +0800 | |
|---|---|---|
| committer | 2019-08-20 13:13:56 +0800 | |
| commit | cbb1cbe3d61fd83412d20a3ec681879d8a3f2462 (patch) | |
| tree | 461baa67a325dd4f70fc3596c71951a1f4f8628e /bot | |
| parent | Replace paramater and return value docstring documentation with an extended s... (diff) | |
Fix lint errors
Diffstat (limited to 'bot')
| -rw-r--r-- | bot/pagination.py | 4 | ||||
| -rw-r--r-- | bot/seasons/halloween/monstersurvey.py | 8 | 
2 files changed, 3 insertions, 9 deletions
| diff --git a/bot/pagination.py b/bot/pagination.py index 212f9f4e..c12b6233 100644 --- a/bot/pagination.py +++ b/bot/pagination.py @@ -294,9 +294,7 @@ class ImagePaginator(Paginator):          self.close_page()      def add_image(self, image: str = None) -> None: -        """ -        Adds an image to a page given the url. -        """ +        """Adds an image to a page given the url."""          self.images.append(image)      @classmethod diff --git a/bot/seasons/halloween/monstersurvey.py b/bot/seasons/halloween/monstersurvey.py index 05e86628..173ce8eb 100644 --- a/bot/seasons/halloween/monstersurvey.py +++ b/bot/seasons/halloween/monstersurvey.py @@ -144,9 +144,7 @@ class MonsterSurvey(Cog):          name='show'      )      async def monster_show(self, ctx: Context, name=None) -> None: -        """ -        Shows the named monster. If one is not named, it sends the default voting embed instead. -        """ +        """Shows the named monster. If one is not named, it sends the default voting embed instead."""          if name is None:              await ctx.invoke(self.monster_leaderboard)              return @@ -177,9 +175,7 @@ class MonsterSurvey(Cog):          aliases=('lb',)      )      async def monster_leaderboard(self, ctx: Context) -> None: -        """ -        Shows the current standings. -        """ +        """Shows the current standings."""          async with ctx.typing():              vr = self.voter_registry              top = sorted(vr, key=lambda k: len(vr[k]['votes']), reverse=True) | 
