mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-08 05:14:35 +00:00
Imports cleanup
This commit is contained in:
3
gui.py
3
gui.py
@@ -5,8 +5,8 @@ import logging
|
||||
import tkinter as tk
|
||||
from math import log10, ceil
|
||||
from tkinter.font import Font
|
||||
from collections import namedtuple, OrderedDict
|
||||
from tkinter import Tk, ttk, StringVar, DoubleVar
|
||||
from collections import abc, namedtuple, OrderedDict
|
||||
from typing import Any, TypedDict, NoReturn, TYPE_CHECKING
|
||||
|
||||
try:
|
||||
@@ -20,7 +20,6 @@ from constants import FORMATTER, WS_TOPICS_LIMIT, MAX_WEBSOCKETS, WINDOW_TITLE,
|
||||
if TYPE_CHECKING:
|
||||
from twitch import Twitch
|
||||
from channel import Channel
|
||||
from collections import abc
|
||||
from inventory import Game, TimedDrop
|
||||
|
||||
|
||||
|
||||
@@ -9,8 +9,9 @@ from constants import GQL_OPERATIONS
|
||||
from utils import timestamp, invalidate_cache, Game
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from twitch import Twitch
|
||||
from collections import abc
|
||||
|
||||
from twitch import Twitch
|
||||
from constants import JsonType
|
||||
from gui import CampaignProgress
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ from yarl import URL
|
||||
from time import time
|
||||
from itertools import chain
|
||||
from functools import partial
|
||||
from collections import OrderedDict
|
||||
from typing import NoReturn, cast, TYPE_CHECKING
|
||||
from collections import abc, OrderedDict
|
||||
from contextlib import suppress, asynccontextmanager
|
||||
from typing import Final, NoReturn, cast, TYPE_CHECKING
|
||||
|
||||
try:
|
||||
import aiohttp
|
||||
@@ -37,8 +37,6 @@ from constants import (
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Final
|
||||
from collections import abc
|
||||
from datetime import datetime
|
||||
|
||||
from utils import Game
|
||||
|
||||
@@ -18,8 +18,9 @@ from utils import task_wrapper, create_nonce, AwaitableValue
|
||||
from constants import PING_INTERVAL, PING_TIMEOUT, MAX_WEBSOCKETS, WS_TOPICS_LIMIT
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from twitch import Twitch
|
||||
from collections import abc
|
||||
|
||||
from twitch import Twitch
|
||||
from constants import JsonType, WebsocketTopic
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user