"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.
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org