I want to create a Square class that has method to calculate the distance from another Square. Here is how I have defined it:
class Square:
    def __init__(self, _x: int, _y: int):
        self.x = _x
        self.y = _y
    def distance(self, _other_square: Square) -> int:
        pass
The _other_square is an object of type Square.
This gives me an Unresolved reference 'Square' error. 
Is there a way to get around it?
 
    