title: Python typehints and linters
body: <p>I've been adding static typechecking to our python project, for example like this:</p>
  
  <pre><code>from typing import List
  from something import MyOtherClass
  
  class MyClass:
      def __init__(self) -&gt; None:
          self.some_var = None  # type: List[MyOtherClass]
  </code></pre>
  
  <p>However, now the linters we use (flake8 and pylint) report for example <code>List</code> as unused variables, since they are not used in actual code. (pep8 handles it fine, by the way).</p>
  
  <p>So we end up changing the code to this:</p>
  
  <pre><code>from typing import List  # noqa # pylint: disable=unused-import
  from something import MyOtherClass  # noqa # pylint: disable=unused-import
  
  class MyClass:
      def __init__(self) -&gt; None:
          self.some_var = None  # type: List[MyOtherClass]
  </code></pre>
  
  <p>Is there any better solution to solve this? We don't want to disable all unused import warnings.</p>