Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 20, 2023
2 parents 23c0841 + d09e709 commit 424afe6
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 24 deletions.
2 changes: 1 addition & 1 deletion afk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from redbot.core.bot import Red
from redbot.core.errors import CogLoadError

from .core import AFK
from ._tagscript import validate_tagscriptengine
from .core import AFK

VERSION_RE: Pattern[str] = re.compile(r"AdvancedTagScriptEngine==(\d\.\d\.\d)")

Expand Down
5 changes: 2 additions & 3 deletions afk/_tagscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@
"""

from importlib import reload
from typing import List, Final, Dict, Any, final, Tuple
from typing import Any, Dict, Final, List, Tuple, final

import discord
import TagScriptEngine as tse
from redbot.core.bot import Red
from redbot.core import commands
from redbot.core.bot import Red
from redbot.core.errors import CogLoadError
from redbot.core.utils.chat_formatting import humanize_number


__all__: Tuple[str, ...] = (
"custom_message",
"TAGSCRIPT_LIMIT",
Expand Down
10 changes: 5 additions & 5 deletions afk/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,21 @@

import logging
from datetime import datetime, timezone
from typing import Dict, Union, List, Final, Optional, Literal
from typing import Dict, Final, List, Literal, Optional, Union

import discord
import TagScriptEngine as tse
from redbot.core.bot import Red
from redbot.core import Config, commands
from redbot.core.utils.menus import menu, DEFAULT_CONTROLS
from redbot.core.bot import Red
from redbot.core.utils.chat_formatting import humanize_list, pagify
from redbot.core.utils.menus import DEFAULT_CONTROLS, menu

from ._tagscript import (
_process_tagscript,
TAGSCRIPT_LIMIT,
TagCharacterLimitReached,
TagscriptConverter,
_process_tagscript,
custom_message,
TAGSCRIPT_LIMIT,
)
from .views import AFKPaginator, AFKView

Expand Down
4 changes: 2 additions & 2 deletions afk/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
SOFTWARE.
"""

from typing import Dict, List, Optional, Any, Union, TYPE_CHECKING
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union

import discord
from redbot.core.bot import Red
from redbot.core import commands
from redbot.core.bot import Red

if TYPE_CHECKING:
from .core import AFK
Expand Down
2 changes: 1 addition & 1 deletion tags/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
SOFTWARE.
"""

from aiohttp import ClientSession
from abc import ABC, abstractmethod

from aiohttp import ClientSession
from redbot.core import Config, commands
from redbot.core.bot import Red

Expand Down
2 changes: 1 addition & 1 deletion tags/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"""

import re
from typing import Optional, Pattern, Any, Match
from typing import Any, Match, Optional, Pattern

from discord.utils import escape_mentions
from redbot.core import commands
Expand Down
4 changes: 2 additions & 2 deletions tags/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"""

import asyncio
import contextlib
import logging
import re
import contextlib
from collections import defaultdict
from operator import itemgetter
from typing import Any, Coroutine, List, Optional, Dict, Union, Final, Tuple
from typing import Any, Coroutine, Dict, Final, List, Optional, Tuple, Union

import aiohttp
import discord
Expand Down
2 changes: 1 addition & 1 deletion tags/doc_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import os
import re
import zlib
from typing import Dict, Final, Generator, Pattern, Match, Optional
from typing import Dict, Final, Generator, Match, Optional, Pattern


class SphinxObjectFileReader:
Expand Down
4 changes: 2 additions & 2 deletions tags/mixins/owner.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
SOFTWARE.
"""

import re
import ast
import inspect
import logging
import re
import textwrap
import traceback
from typing import List, Dict, Optional, Literal, Pattern, Iterator
from types import CodeType
from typing import Dict, Iterator, List, Literal, Optional, Pattern

import discord
import TagScriptEngine as tse
Expand Down
2 changes: 1 addition & 1 deletion tags/mixins/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import asyncio
import logging
from copy import copy
from typing import Dict, List, Optional, Any, Union, Type
from typing import Any, Dict, List, Optional, Type, Union

import discord
import TagScriptEngine as tse
Expand Down
4 changes: 2 additions & 2 deletions tags/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"""

from datetime import datetime, timezone
from typing import Any, List, Optional, Final, Tuple, Dict, Union
from typing import Any, Dict, Final, List, Optional, Tuple, Union

import discord
import TagScriptEngine as tse
from redbot.core import Config, commands
from redbot.core.config import Group
from redbot.core.bot import Red
from redbot.core.config import Group
from redbot.core.utils.chat_formatting import box, humanize_list, humanize_number, inline, pagify

from .errors import TagAliasError
Expand Down
2 changes: 1 addition & 1 deletion tags/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"""

from importlib import reload
from typing import Final, Generator, Sequence, List, Union
from typing import Final, Generator, List, Sequence, Union

import discord
from redbot.core import commands
Expand Down
4 changes: 2 additions & 2 deletions tags/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any, List, Optional, Tuple, Dict
from typing import Any, Dict, List, Optional, Tuple

import discord
from redbot.core.bot import Red
from redbot.core import commands
from redbot.core.bot import Red
from redbot.vendored.discord.ext.menus import ListPageSource

__all__ = ("ConfirmationView", "PageSource", "PaginatedView")
Expand Down

0 comments on commit 424afe6

Please sign in to comment.