On 4/20/2019 2:08 PM, Inada Naoki wrote:
"import typing" is slow too.
2019年4月21日(日) 1:43 Ilya Kamenshchikov <ikamenshchi...@gmail.com
<mailto:ikamenshchi...@gmail.com>>:
alright, so would an import under TYPE_CHECKING guard be an
option? like:
from typingimport TYPE_CHECKING
if TYPE_CHECKING:
from .processimport ProcessPoolExecutor
from .threadimport ThreadPoolExecutor
Perhaps we can have both clarity and performance.
How about:
from faketyping import TYPE_CHECKING
where faketyping.py:
TYPE_CHECKING = None
I don't know enough about how TYPE_CHECKING (or typing) is optionally
enabled to come up with an exactly correct proposal.
_______________________________________________
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/archive%40mail-archive.com