You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 069fe31
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: conformance/results/zuban/annotations_forward_refs.toml
+2-9Lines changed: 2 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,8 @@ notes = """
3
3
Fails to resolve forward references in classes from builtins
4
4
Incorrectly resolves type parameter syntax names in forward references
5
5
"""
6
-
conformance_automated = "Fail"
6
+
conformance_automated = "Pass"
7
7
errors_diff = """
8
-
Line 82: Unexpected errors ['annotations_forward_refs.py:82: error: Name "bytes" is not defined [name-defined]']
9
-
Line 110: Unexpected errors ['annotations_forward_refs.py:110: error: Expression is of type "Any", not "bytes" [misc]']
10
-
Line 130: Unexpected errors ['annotations_forward_refs.py:130: error: Expression is of type "T", not "int" [misc]', 'annotations_forward_refs.py:130: error: Argument 1 to "identity2" of "ClassE" has incompatible type "int"; expected "T" [arg-type]']
11
8
"""
12
9
output = """
13
10
annotations_forward_refs.py:24: error: Forward reference unions cause runtime errors, consider wrapping the whole annotation with a string [misc]
@@ -31,16 +28,12 @@ annotations_forward_refs.py:53: error: Invalid type comment or annotation [vali
31
28
annotations_forward_refs.py:54: error: Invalid type comment or annotation [valid-type]
32
29
annotations_forward_refs.py:55: error: Module "types" is not valid as a type [valid-type]
33
30
annotations_forward_refs.py:55: note: Perhaps you meant to use a protocol matching the module structure?
34
-
annotations_forward_refs.py:82: error: Name "bytes" is not defined [name-defined]
35
31
annotations_forward_refs.py:92: error: Name "ClassF" is not defined [name-defined]
36
-
annotations_forward_refs.py:94: error: Name "str" is not defined [name-defined]
32
+
annotations_forward_refs.py:94: error: Cannot resolve name "str" (possible cyclic definition) [misc]
37
33
annotations_forward_refs.py:96: error: Function "tests.annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]
38
34
annotations_forward_refs.py:96: note: Perhaps you need "Callable[...]" or a callback protocol?
39
35
annotations_forward_refs.py:101: error: Function "tests.annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]
40
36
annotations_forward_refs.py:101: note: Perhaps you need "Callable[...]" or a callback protocol?
41
37
annotations_forward_refs.py:103: error: Function "tests.annotations_forward_refs.ClassD.int" is not valid as a type [valid-type]
42
38
annotations_forward_refs.py:103: note: Perhaps you need "Callable[...]" or a callback protocol?
43
-
annotations_forward_refs.py:110: error: Expression is of type "Any", not "bytes" [misc]
44
-
annotations_forward_refs.py:130: error: Expression is of type "T", not "int" [misc]
45
-
annotations_forward_refs.py:130: error: Argument 1 to "identity2" of "ClassE" has incompatible type "int"; expected "T" [arg-type]
0 commit comments