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
Copy file name to clipboardExpand all lines: conformance/results/mypy/protocols_generic.toml
+15-19Lines changed: 15 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -16,25 +16,21 @@ protocols_generic.py:56: error: Incompatible types in assignment (expression has
16
16
protocols_generic.py:66: error: Incompatible types in assignment (expression has type "Sender[int]", variable has type "Sender[float]") [assignment]
17
17
protocols_generic.py:74: error: Incompatible types in assignment (expression has type "AttrProto[int]", variable has type "AttrProto[float]") [assignment]
18
18
protocols_generic.py:75: error: Incompatible types in assignment (expression has type "AttrProto[float]", variable has type "AttrProto[int]") [assignment]
19
-
protocols_generic.py:145: error: Incompatible types in assignment (expression has type "ConcreteHasProperty2", variable has type "HasPropertyProto") [assignment]
20
-
protocols_generic.py:145: note: Following member(s) of "ConcreteHasProperty2" have conflicts:
protocols_generic.py:146: error: Incompatible types in assignment (expression has type "ConcreteHasProperty3", variable has type "HasPropertyProto") [assignment]
26
-
protocols_generic.py:146: note: Following member(s) of "ConcreteHasProperty3" have conflicts:
protocols_generic.py:147: error: Incompatible types in assignment (expression has type "ConcreteHasProperty4", variable has type "HasPropertyProto") [assignment]
33
-
protocols_generic.py:147: note: Following member(s) of "ConcreteHasProperty4" have conflicts:
protocols_generic.py:120: error: Incompatible types in assignment (expression has type "InvalidParentProperty", variable has type "HasParentProperty") [assignment]
20
+
protocols_generic.py:120: note: Following member(s) of "InvalidParentProperty" have conflicts:
protocols_generic.py:166: error: Incompatible types in assignment (expression has type "InvalidGreaterThan", variable has type "HasGreaterThan") [assignment]
29
+
protocols_generic.py:166: note: Following member(s) of "InvalidGreaterThan" have conflicts:
Copy file name to clipboardExpand all lines: conformance/results/pycroscope/protocols_generic.toml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Treats global object as a literal.
4
4
"""
5
5
conformance_automated = "Fail"
6
6
errors_diff = """
7
-
Line 96: Unexpected errors ['./protocols_generic.py:96:12: Literal[<protocols_generic.ConcreteHasParent object at 0x...>] is not equivalent to protocols_generic.ConcreteHasParent']
7
+
Line 98: Unexpected errors ['./protocols_generic.py:98:12: Literal[<protocols_generic.ConcreteHasParent object at 0x...>] is not equivalent to protocols_generic.ConcreteHasParent']
Only partially supports `@property` protocol members.
4
+
Does not reject incompatible non-generic implementations of generic protocol methods.
5
5
"""
6
6
errors_diff = """
7
-
Line 144: Unexpected errors ['protocols_generic.py:144:25: error[invalid-assignment] Object of type `ConcreteHasProperty1` is not assignable to `HasPropertyProto`']
7
+
Line 140: Expected 1 errors
8
8
"""
9
9
output = """
10
10
protocols_generic.py:40:24: error[invalid-assignment] Object of type `Concrete1` is not assignable to `Proto1[int, str]`
@@ -13,8 +13,6 @@ protocols_generic.py:56:20: error[invalid-assignment] Object of type `Box[float]
13
13
protocols_generic.py:66:25: error[invalid-assignment] Object of type `Sender[int]` is not assignable to `Sender[float]`
14
14
protocols_generic.py:74:28: error[invalid-assignment] Object of type `AttrProto[int]` is not assignable to `AttrProto[float]`
15
15
protocols_generic.py:75:26: error[invalid-assignment] Object of type `AttrProto[float]` is not assignable to `AttrProto[int]`
16
-
protocols_generic.py:144:25: error[invalid-assignment] Object of type `ConcreteHasProperty1` is not assignable to `HasPropertyProto`
17
-
protocols_generic.py:145:25: error[invalid-assignment] Object of type `ConcreteHasProperty2` is not assignable to `HasPropertyProto`
18
-
protocols_generic.py:146:25: error[invalid-assignment] Object of type `ConcreteHasProperty3` is not assignable to `HasPropertyProto`
19
-
protocols_generic.py:147:25: error[invalid-assignment] Object of type `ConcreteHasProperty4` is not assignable to `HasPropertyProto`
16
+
protocols_generic.py:120:26: error[invalid-assignment] Object of type `InvalidParentProperty` is not assignable to `HasParentProperty`
17
+
protocols_generic.py:166:23: error[invalid-assignment] Object of type `InvalidGreaterThan` is not assignable to `HasGreaterThan`
Copy file name to clipboardExpand all lines: conformance/results/zuban/protocols_generic.toml
+15-19Lines changed: 15 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -17,23 +17,19 @@ protocols_generic.py:56: error: Incompatible types in assignment (expression has
17
17
protocols_generic.py:66: error: Incompatible types in assignment (expression has type "Sender[int]", variable has type "Sender[float]") [assignment]
18
18
protocols_generic.py:74: error: Incompatible types in assignment (expression has type "AttrProto[int]", variable has type "AttrProto[float]") [assignment]
19
19
protocols_generic.py:75: error: Incompatible types in assignment (expression has type "AttrProto[float]", variable has type "AttrProto[int]") [assignment]
20
-
protocols_generic.py:145: error: Incompatible types in assignment (expression has type "ConcreteHasProperty2", variable has type "HasPropertyProto") [assignment]
21
-
protocols_generic.py:145: note: Following member(s) of "ConcreteHasProperty2" have conflicts:
protocols_generic.py:146: error: Incompatible types in assignment (expression has type "ConcreteHasProperty3", variable has type "HasPropertyProto") [assignment]
27
-
protocols_generic.py:146: note: Following member(s) of "ConcreteHasProperty3" have conflicts:
protocols_generic.py:147: error: Incompatible types in assignment (expression has type "ConcreteHasProperty4", variable has type "HasPropertyProto") [assignment]
34
-
protocols_generic.py:147: note: Following member(s) of "ConcreteHasProperty4" have conflicts:
protocols_generic.py:120: error: Incompatible types in assignment (expression has type "InvalidParentProperty", variable has type "HasParentProperty") [assignment]
21
+
protocols_generic.py:120: note: Following member(s) of "InvalidParentProperty" have conflicts:
protocols_generic.py:166: error: Incompatible types in assignment (expression has type "InvalidGreaterThan", variable has type "HasGreaterThan") [assignment]
30
+
protocols_generic.py:166: note: Following member(s) of "InvalidGreaterThan" have conflicts:
0 commit comments