I want to know Python type comment for function argument.
I already know basic type comment. (int, str, list, dict ... etc ...)
but. I don't know how to Custom Class type comment in This Class
ex)
class Student():
def __init__(self, score:int):
self.score = score
def compare_score(self, another_student: Student):
return 1 if self.score > another_student.score else 0 if self.score == another_student.score else -1
this situation. receive an error message => Unresolved reference 'Student'
plz help.