mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
Core: tkinter import may only be needed for type-info and can be skipped in certain cases for speed of startup
This commit is contained in:
6
Utils.py
6
Utils.py
@@ -12,7 +12,11 @@ import io
|
|||||||
import collections
|
import collections
|
||||||
import importlib
|
import importlib
|
||||||
import logging
|
import logging
|
||||||
from tkinter import Tk
|
|
||||||
|
if typing.TYPE_CHECKING:
|
||||||
|
from tkinter import Tk
|
||||||
|
else:
|
||||||
|
Tk = typing.Any
|
||||||
|
|
||||||
|
|
||||||
def tuplize_version(version: str) -> Version:
|
def tuplize_version(version: str) -> Version:
|
||||||
|
Reference in New Issue
Block a user