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:
parent
ad99850192
commit
051e19e9c1
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:
|
||||||
|
|
Loading…
Reference in New Issue