I have an abstract class Foo:
class Foo(ABC):
  def bar(self, arg: Foo):
    pass
I do get this error NameError: name 'Foo' is not defined for type restricting arg to Foo
What can I do to give a valid type hint?
I have an abstract class Foo:
class Foo(ABC):
  def bar(self, arg: Foo):
    pass
I do get this error NameError: name 'Foo' is not defined for type restricting arg to Foo
What can I do to give a valid type hint?
