Imports cleanup

This commit is contained in:
DevilXD
2022-03-12 11:59:25 +01:00
parent 25bc398ec1
commit 82b999995f
4 changed files with 7 additions and 8 deletions

3
gui.py
View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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