title: Is there something like js hoisting for class definitions in python?
body: <p>I've got 2 class definitions:</p>
  
  <pre><code>class Foo:
    def __init__(self, bar: Bar):
      # some code
  
  class Bar:
    def __init__(self, foo: Foo):
      # some more code
  </code></pre>
  
  <p>I want to specify the types of the arguments. When I try to run that code I get "using variable 'Bar' before assignment" error.</p>
  
  <p>Is it possible to tell the interpreter that <code>Bar</code> is defined a few lines below?</p>