mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-22 17:22:09 +03:00
[Minor] Update Type Hints and Alias Usages
This commit is contained in:
31 files changed
+85
-71
No files matched your search
@@ -22,7 +22,8 @@ referenced in this file (or only in any other core plugin), and if so...
|
||||
# pylint: disable=import-error
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Mapping, cast
|
||||
from typing import Any, cast
|
||||
from collections.abc import Mapping
|
||||
import tkinter as tk
|
||||
import base64
|
||||
import gzip
|
||||
|
||||
+2
-1
@@ -22,7 +22,8 @@ referenced in this file (or only in any other core plugin), and if so...
|
||||
# pylint: disable=import-error
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Mapping
|
||||
from typing import Any
|
||||
from collections.abc import Mapping
|
||||
import tkinter as tk
|
||||
from tkinter import ttk
|
||||
import myNotebook as nb # noqa: N813 # its not my fault.
|
||||
|
||||
+3
-2
@@ -33,7 +33,8 @@ from tkinter import ttk
|
||||
from platform import system
|
||||
from textwrap import dedent
|
||||
from threading import Lock
|
||||
from typing import Any, Iterator, Mapping, MutableMapping
|
||||
from typing import Any
|
||||
from collections.abc import Iterator, Mapping, MutableMapping
|
||||
import requests
|
||||
import companion
|
||||
import edmc_data
|
||||
@@ -152,7 +153,7 @@ class EDDNSender:
|
||||
r"unable to validate.',\)]$"
|
||||
)
|
||||
|
||||
def __init__(self, eddn: 'EDDN', eddn_endpoint: str) -> None:
|
||||
def __init__(self, eddn: EDDN, eddn_endpoint: str) -> None:
|
||||
"""
|
||||
Prepare the system for processing messages.
|
||||
|
||||
|
||||
+2
-1
@@ -29,7 +29,8 @@ from queue import Queue
|
||||
from threading import Thread
|
||||
from time import sleep
|
||||
from tkinter import ttk
|
||||
from typing import Any, Literal, Mapping, MutableMapping, cast, Sequence
|
||||
from typing import Any, Literal, cast
|
||||
from collections.abc import Mapping, MutableMapping, Sequence
|
||||
import requests
|
||||
import killswitch
|
||||
import monitor
|
||||
|
||||
+2
-1
@@ -20,7 +20,8 @@ referenced in this file (or only in any other core plugin), and if so...
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Any, Mapping
|
||||
from typing import Any
|
||||
from collections.abc import Mapping
|
||||
from plugins.common_coreutils import shipyard_url_common # pylint: disable=E0401
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -31,7 +31,8 @@ from datetime import datetime, timedelta, timezone
|
||||
from operator import itemgetter
|
||||
from threading import Lock, Thread
|
||||
from tkinter import ttk
|
||||
from typing import Any, Callable, Deque, Mapping, NamedTuple, Sequence, cast, Union
|
||||
from typing import Any, Deque, NamedTuple, cast, Union
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
import requests
|
||||
import edmc_data
|
||||
import killswitch
|
||||
|
||||
Reference in new issue
Block a user