I'm trying to create a method that takes self and another instance of the same method as its arguments, for example:
class AClass():
def __init__(self, v:int)->None:
self.var = v
def a_method(self, other: AClass)->None:
self.var = other.var
using the type hint other: AClass isn't recognised, and as such, the .var of other.var isn't highlighted in my IDE. My plan currently is to just remove the type hint, is there a more correct way to do this?