diff options
| author | 2020-08-03 10:15:09 +0200 | |
|---|---|---|
| committer | 2020-08-03 10:15:09 +0200 | |
| commit | 7a84ed8dbec5c1497a08865fa3144eb867dc1636 (patch) | |
| tree | b9db40c97a9f607c2ccfec8780946ebc4757bfee | |
| parent | Change some errant single quotes to doubles. (diff) | |
Move function params to 4-space indentation.
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/filter_lists.py | 36 | 
1 files changed, 18 insertions, 18 deletions
| diff --git a/bot/cogs/filter_lists.py b/bot/cogs/filter_lists.py index e50411d51..8aa5a0a08 100644 --- a/bot/cogs/filter_lists.py +++ b/bot/cogs/filter_lists.py @@ -45,12 +45,12 @@ class FilterLists(Cog):              )      async def _add_data( -            self, -            ctx: Context, -            allowed: bool, -            list_type: ValidFilterListType, -            content: str, -            comment: Optional[str] = None, +        self, +        ctx: Context, +        allowed: bool, +        list_type: ValidFilterListType, +        content: str, +        comment: Optional[str] = None,      ) -> None:          """Add an item to a filterlist."""          allow_type = "whitelist" if allowed else "blacklist" @@ -198,24 +198,24 @@ class FilterLists(Cog):      @whitelist.command(name="add", aliases=("a", "set"))      async def allow_add( -            self, -            ctx: Context, -            list_type: ValidFilterListType, -            content: str, -            *, -            comment: Optional[str] = None, +        self, +        ctx: Context, +        list_type: ValidFilterListType, +        content: str, +        *, +        comment: Optional[str] = None,      ) -> None:          """Add an item to the specified allowlist."""          await self._add_data(ctx, True, list_type, content, comment)      @blacklist.command(name="add", aliases=("a", "set"))      async def deny_add( -            self, -            ctx: Context, -            list_type: ValidFilterListType, -            content: str, -            *, -            comment: Optional[str] = None, +        self, +        ctx: Context, +        list_type: ValidFilterListType, +        content: str, +        *, +        comment: Optional[str] = None,      ) -> None:          """Add an item to the specified denylist."""          await self._add_data(ctx, False, list_type, content, comment) | 
