<div dir="auto">"import typing" is slow too.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2019年4月21日(日) 1:43 Ilya Kamenshchikov <<a href="mailto:ikamenshchikov@gmail.com">ikamenshchikov@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">alright, so would an import under TYPE_CHECKING guard be an option? like:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><pre style="font-family:Consolas;color:rgb(0,0,0);font-size:9pt"><span style="color:rgb(0,0,128);font-weight:bold">from </span>typing <span style="color:rgb(0,0,128);font-weight:bold">import </span>TYPE_CHECKING<br><span style="color:rgb(0,0,128);font-weight:bold">if </span>TYPE_CHECKING:<br> <span style="color:rgb(0,0,128);font-weight:bold">from </span>.process <span style="color:rgb(0,0,128);font-weight:bold">import </span>ProcessPoolExecutor<br> <span style="color:rgb(0,0,128);font-weight:bold">from </span>.thread <span style="color:rgb(0,0,128);font-weight:bold">import </span>ThreadPoolExecutor</pre><pre style="color:rgb(0,0,0);font-size:9pt"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="color:rgb(0,0,0)"><font face="verdana, sans-serif">Perhaps we can have both clarity and performance.</font></pre></div></div></div>
</blockquote></div>