1a:int=3 2b:str="foo" 3 4class MyClass: 5 a:int=4 6 b:str="bar" 7 def __init__(self, a, b): 8 self.a = a 9 self.b = b 10 def __eq__(self, other): 11 return isinstance(other, MyClass) and self.a == other.a and self.b == other.b 12 13def function(a:int, b:str) -> MyClass: 14 return MyClass(a, b) 15 16 17def function2(a:int, b:"str", c:MyClass) -> MyClass: 18 pass 19 20 21def function3(a:"int", b:"str", c:"MyClass"): 22 pass 23 24 25class UnannotatedClass: 26 pass 27 28def unannotated_function(a, b, c): pass 29