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:
Fabian Dill
2022-05-18 22:30:19 +02:00
committed by Fabian Dill
parent ad99850192
commit 051e19e9c1

View File

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