title: Python type hint in inherited class
body: <p>I have a small piece of code</p>
  <pre class="lang-py prettyprint-override"><code>from threading import Timer
  from time import sleep
  
  class RepeatTimer(Timer):
  
      def run(self):
          while not self.finished.wait(self.interval):
              self.function(*self.args, **self.kwargs)
  
  
  
  def nudge():
      print('This is a reminder')
  
  remind = RepeatTimer(1,nudge)
  remind.start()
  sleep(5)
  remind.cancel()
  </code></pre>
  <p>The code runs and what the code does is not so important here. But in vscode a error message is thrown for <code>Pylance(reportGeneralTypeIssues)</code></p>
  <pre><code>&quot;Cannot access member \&quot;finished\&quot; for type \&quot;RepeatTimer\&quot;\n  Member \&quot;finished\&quot; is unknown&quot;,
  &quot;Cannot access member \&quot;interval\&quot; for type \&quot;RepeatTimer\&quot;\n  Member \&quot;interval\&quot; is unknown&quot;,
  &quot;Cannot access member \&quot;function\&quot; for type \&quot;RepeatTimer\&quot;\n  Member \&quot;function\&quot; is unknown&quot;,
  &quot;Cannot access member \&quot;args\&quot; for type \&quot;RepeatTimer\&quot;\n  Member \&quot;args\&quot; is unknown&quot;,
  &quot;Cannot access member \&quot;kwargs\&quot; for type \&quot;RepeatTimer\&quot;\n  Member \&quot;kwargs\&quot; is unknown&quot;,
  </code></pre>
  <p>So, how do I fix this? How to properly type annotate the <code>self</code> here so it actually can detect that these are the members of the class <code>Timer</code>.</p>