()
| 80 | |
| 81 | |
| 82 | def test_complex_function(): |
| 83 | MyClass, f = load_obj("function_with_type_hints.pkl") |
| 84 | assert len(f.__annotations__) > 0 |
| 85 | |
| 86 | a = MyClass(1) |
| 87 | b = MyClass(2) |
| 88 | |
| 89 | c = f(a, b) |
| 90 | assert c.attribute == 3 |
| 91 | |
| 92 | |
| 93 | def test_nested_function(): |