How can I type a static method that returns an instance object?
import typing
class foo(object):
@staticmethod
def getOne() -> foo:
return FooRegister().get()
FooRegister contains all the instances of foo. If however I type it as shown, python complains since foo hasn't been defined yet.
What's the correct way to type this?