(original) (raw)
"import typing" is slow too.
2019年4月21日(日) 1:43 Ilya Kamenshchikov <ikamenshchikov@gmail.com>:
alright, so would an import under TYPE\_CHECKING guard be an option? like:from typing import TYPE\_CHECKING
if TYPE\_CHECKING:
from .process import ProcessPoolExecutor
from .thread import ThreadPoolExecutorPerhaps we can have both clarity and performance.