Imports cleanup
This commit is contained in:
1 parent
25bc398ec1
commit
82b999995f
4 files changed
+7
-8
No files matched your search
@@ -5,8 +5,8 @@ import logging
|
|||||||
import tkinter as tk
|
import tkinter as tk
|
||||||
from math import log10, ceil
|
from math import log10, ceil
|
||||||
from tkinter.font import Font
|
from tkinter.font import Font
|
||||||
from collections import namedtuple, OrderedDict
|
|
||||||
from tkinter import Tk, ttk, StringVar, DoubleVar
|
from tkinter import Tk, ttk, StringVar, DoubleVar
|
||||||
|
from collections import abc, namedtuple, OrderedDict
|
||||||
from typing import Any, TypedDict, NoReturn, TYPE_CHECKING
|
from typing import Any, TypedDict, NoReturn, TYPE_CHECKING
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -20,7 +20,6 @@ from constants import FORMATTER, WS_TOPICS_LIMIT, MAX_WEBSOCKETS, WINDOW_TITLE,
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from twitch import Twitch
|
from twitch import Twitch
|
||||||
from channel import Channel
|
from channel import Channel
|
||||||
from collections import abc
|
|
||||||
from inventory import Game, TimedDrop
|
from inventory import Game, TimedDrop
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -9,8 +9,9 @@ from constants import GQL_OPERATIONS
|
|||||||
from utils import timestamp, invalidate_cache, Game
|
from utils import timestamp, invalidate_cache, Game
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from twitch import Twitch
|
|
||||||
from collections import abc
|
from collections import abc
|
||||||
|
|
||||||
|
from twitch import Twitch
|
||||||
from constants import JsonType
|
from constants import JsonType
|
||||||
from gui import CampaignProgress
|
from gui import CampaignProgress
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ from yarl import URL
|
|||||||
from time import time
|
from time import time
|
||||||
from itertools import chain
|
from itertools import chain
|
||||||
from functools import partial
|
from functools import partial
|
||||||
from collections import OrderedDict
|
from collections import abc, OrderedDict
|
||||||
from typing import NoReturn, cast, TYPE_CHECKING
|
|
||||||
from contextlib import suppress, asynccontextmanager
|
from contextlib import suppress, asynccontextmanager
|
||||||
|
from typing import Final, NoReturn, cast, TYPE_CHECKING
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import aiohttp
|
import aiohttp
|
||||||
@@ -37,8 +37,6 @@ from constants import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from typing import Final
|
|
||||||
from collections import abc
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from utils import Game
|
from utils import Game
|
||||||
|
|||||||
+2
-1
@@ -18,8 +18,9 @@ from utils import task_wrapper, create_nonce, AwaitableValue
|
|||||||
from constants import PING_INTERVAL, PING_TIMEOUT, MAX_WEBSOCKETS, WS_TOPICS_LIMIT
|
from constants import PING_INTERVAL, PING_TIMEOUT, MAX_WEBSOCKETS, WS_TOPICS_LIMIT
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from twitch import Twitch
|
|
||||||
from collections import abc
|
from collections import abc
|
||||||
|
|
||||||
|
from twitch import Twitch
|
||||||
from constants import JsonType, WebsocketTopic
|
from constants import JsonType, WebsocketTopic
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user