|
1 | 1 | conformant = "Partial" |
2 | 2 | notes = """ |
3 | 3 | Fails to reject `"x" | int` annotations that fail at runtime. |
| 4 | +Resolves forward references in type annotations in classes at the point of definition instead of end-of-scope |
4 | 5 | Rejects some valid quoted annotations. |
5 | 6 | """ |
6 | 7 | conformance_automated = "Fail" |
7 | 8 | errors_diff = """ |
8 | 9 | Line 24: Expected 1 errors |
9 | 10 | Line 25: Expected 1 errors |
| 11 | +Line 94: Expected 1 errors |
| 12 | +Line 96: Expected 1 errors |
10 | 13 | Line 14: Unexpected errors ['./annotations_forward_refs.py:14:8: Undefined name: ClassA [undefined_name]', './annotations_forward_refs.py:14:22: Undefined name: ClassA [undefined_name]', './annotations_forward_refs.py:14:42: Undefined name: ClassA [undefined_name]', './annotations_forward_refs.py:14:62: Undefined name: ClassA [undefined_name]'] |
11 | 14 | Line 16: Unexpected errors ['./annotations_forward_refs.py:16:16: Any[error] is not equivalent to ./annotations_forward_refs.py.ClassA'] |
12 | 15 | Line 17: Unexpected errors ['./annotations_forward_refs.py:17:16: list[Any[error]] is not equivalent to list[./annotations_forward_refs.py.ClassA]'] |
13 | 16 | Line 18: Unexpected errors ['./annotations_forward_refs.py:18:16: list[Any[error]] is not equivalent to list[./annotations_forward_refs.py.ClassA]'] |
14 | 17 | Line 19: Unexpected errors ['./annotations_forward_refs.py:19:16: list[int | Any[error]] is not equivalent to list[./annotations_forward_refs.py.ClassA | int]'] |
15 | | -Line 87: Unexpected errors ['./annotations_forward_refs.py:87:7: Unrecognized annotation (self: ./annotations_forward_refs.py.ClassD) -> None [invalid_annotation]'] |
16 | | -Line 96: Unexpected errors ['./annotations_forward_refs.py:96:12: Any[error] is not equivalent to int'] |
| 18 | +Line 84: Unexpected errors ['./annotations_forward_refs.py:84:12: Undefined name: ClassInner [undefined_name]'] |
| 19 | +Line 112: Unexpected errors ['./annotations_forward_refs.py:112:16: Any[error] is not equivalent to ./annotations_forward_refs.py.ClassD.ClassInner'] |
17 | 20 | """ |
18 | 21 | output = """ |
19 | 22 | ./annotations_forward_refs.py:14:8: Undefined name: ClassA [undefined_name] |
@@ -41,8 +44,11 @@ output = """ |
41 | 44 | ./annotations_forward_refs.py:53:0: Invalid type annotation [invalid_annotation] |
42 | 45 | ./annotations_forward_refs.py:54:0: Invalid type annotation [invalid_annotation] |
43 | 46 | ./annotations_forward_refs.py:55:9: Invalid type annotation <module 'types'> [invalid_annotation] |
44 | | -./annotations_forward_refs.py:80:12: Undefined name: ClassF [undefined_name] |
45 | | -./annotations_forward_refs.py:87:7: Unrecognized annotation (self: ./annotations_forward_refs.py.ClassD) -> None [invalid_annotation] |
46 | | -./annotations_forward_refs.py:89:7: Unrecognized annotation (self: ./annotations_forward_refs.py.ClassD) -> None [invalid_annotation] |
47 | | -./annotations_forward_refs.py:96:12: Any[error] is not equivalent to int |
| 47 | +./annotations_forward_refs.py:83:12: Undefined name: ClassInner [undefined_name] |
| 48 | +./annotations_forward_refs.py:84:12: Undefined name: ClassInner [undefined_name] |
| 49 | +./annotations_forward_refs.py:92:12: Undefined name: ClassF [undefined_name] |
| 50 | +./annotations_forward_refs.py:101:7: Unrecognized annotation (self: ./annotations_forward_refs.py.ClassD) -> None [invalid_annotation] |
| 51 | +./annotations_forward_refs.py:103:7: Unrecognized annotation (self: ./annotations_forward_refs.py.ClassD) -> None [invalid_annotation] |
| 52 | +./annotations_forward_refs.py:111:16: Any[error] is not equivalent to ./annotations_forward_refs.py.ClassD.ClassInner |
| 53 | +./annotations_forward_refs.py:112:16: Any[error] is not equivalent to ./annotations_forward_refs.py.ClassD.ClassInner |
48 | 54 | """ |
0 commit comments