I have two classes that reference each other in function input type declaration.
class Foo:
def some_func(self, x:Bar):
pass #Does Something
class Bar:
def some_other_func(self, x:Foo):
pass #Does something else entirely
Python won't let me run the code with either order of Foo or Bar there is a reference error. I tried looking at putting them in separate files, but I am unsure if that would solve the issue as they are still dependent on each other. I am not sure how I would pre-emptively declare the class type either.