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/literals_literalstring.toml
+5-8
Original file line number
Diff line number
Diff line change
@@ -8,18 +8,15 @@ literals_literalstring.py:37: error: Parameter 1 of Literal[...] is invalid [va
8
8
literals_literalstring.py:43: error: Incompatible types in assignment (expression has type "Literal['two']", variable has type "Literal['']") [assignment]
9
9
literals_literalstring.py:74: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment]
10
10
literals_literalstring.py:75: error: Incompatible types in assignment (expression has type "bytes", variable has type "str") [assignment]
11
-
literals_literalstring.py:142: error: Overloaded function signatures 1 and 2 overlap with incompatible return types [overload-overlap]
12
-
literals_literalstring.py:142: error: Overloaded function signatures 1 and 3 overlap with incompatible return types [overload-overlap]
13
-
literals_literalstring.py:152: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader [misc]
14
-
literals_literalstring.py:162: error: Expression is of type "bool", not "str" [assert-type]
11
+
literals_literalstring.py:157: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader [misc]
12
+
literals_literalstring.py:167: error: Expression is of type "B", not "A" [assert-type]
15
13
"""
16
14
conformance_automated = "Fail"
17
15
errors_diff = """
18
16
Line 66: Expected 1 errors
19
17
Line 120: Expected 1 errors
20
18
Line 134: Expected 1 errors
21
-
Line 166: Expected 1 errors
22
-
Line 142: Unexpected errors ['literals_literalstring.py:142: error: Overloaded function signatures 1 and 2 overlap with incompatible return types [overload-overlap]', 'literals_literalstring.py:142: error: Overloaded function signatures 1 and 3 overlap with incompatible return types [overload-overlap]']
23
-
Line 152: Unexpected errors ["literals_literalstring.py:152: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader [misc]"]
24
-
Line 162: Unexpected errors ['literals_literalstring.py:162: error: Expression is of type "bool", not "str" [assert-type]']
19
+
Line 171: Expected 1 errors
20
+
Line 157: Unexpected errors ["literals_literalstring.py:157: error: Overloaded function signature 3 will never be matched: signature 2's parameter type(s) are the same or broader [misc]"]
21
+
Line 167: Unexpected errors ['literals_literalstring.py:167: error: Expression is of type "B", not "A" [assert-type]']
Copy file name to clipboardExpand all lines: conformance/results/pyre/literals_literalstring.toml
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ literals_literalstring.py:74:4 Incompatible variable type [9]: x3 is declared to
9
9
literals_literalstring.py:75:4 Incompatible variable type [9]: x4 is declared to have type `typing_extensions.LiteralString` but is used as type `typing_extensions.Literal[b'test']`.
10
10
literals_literalstring.py:120:21 Incompatible parameter type [6]: In call `literal_identity`, for 1st positional argument, expected `Variable[TLiteral (bound to typing_extensions.LiteralString)]` but got `str`.
11
11
literals_literalstring.py:134:50 Incompatible parameter type [6]: In call `Container.__init__`, for 1st positional argument, expected `Variable[T (bound to typing_extensions.LiteralString)]` but got `str`.
12
-
literals_literalstring.py:166:4 Incompatible variable type [9]: x1 is declared to have type `List[str]` but is used as type `List[typing_extensions.LiteralString]`.
12
+
literals_literalstring.py:171:4 Incompatible variable type [9]: x1 is declared to have type `List[str]` but is used as type `List[typing_extensions.LiteralString]`.
Copy file name to clipboardExpand all lines: conformance/results/pyright/literals_literalstring.toml
+2-5
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,11 @@ literals_literalstring.py:120:22 - error: Argument of type "str" cannot be assig
16
16
literals_literalstring.py:134:51 - error: Argument of type "str" cannot be assigned to parameter "value" of type "T@Container" in function "__init__"
17
17
Type "str" cannot be assigned to type "LiteralString"
18
18
"str" is incompatible with "LiteralString" (reportArgumentType)
19
-
literals_literalstring.py:142:5 - error: Overload 1 for "func8" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)
20
-
literals_literalstring.py:142:5 - error: Overload 1 for "func8" overlaps overload 3 and returns an incompatible type (reportOverlappingOverload)
21
-
literals_literalstring.py:166:21 - error: Expression of type "list[LiteralString]" cannot be assigned to declared type "list[str]"
19
+
literals_literalstring.py:171:21 - error: Expression of type "list[LiteralString]" cannot be assigned to declared type "list[str]"
22
20
"list[LiteralString]" is incompatible with "list[str]"
23
21
Type parameter "_T@list" is invariant, but "LiteralString" is not the same as "str"
24
22
Consider switching from "list" to "Sequence" which is covariant (reportAssignmentType)
25
23
"""
26
-
conformance_automated = "Fail"
24
+
conformance_automated = "Pass"
27
25
errors_diff = """
28
-
Line 142: Unexpected errors ['literals_literalstring.py:142:5 - error: Overload 1 for "func8" overlaps overload 2 and returns an incompatible type (reportOverlappingOverload)', 'literals_literalstring.py:142:5 - error: Overload 1 for "func8" overlaps overload 3 and returns an incompatible type (reportOverlappingOverload)']
Copy file name to clipboardExpand all lines: conformance/results/pytype/literals_literalstring.toml
+9-6
Original file line number
Diff line number
Diff line change
@@ -10,19 +10,22 @@ File "literals_literalstring.py", line 37, in <module>: Invalid type annotation
10
10
File "literals_literalstring.py", line 43, in func1: Type annotation for x2 does not match type of assignment [annotation-type-mismatch]
11
11
File "literals_literalstring.py", line 74, in func2: Type annotation for x3 does not match type of assignment [annotation-type-mismatch]
12
12
File "literals_literalstring.py", line 75, in func2: Type annotation for x4 does not match type of assignment [annotation-type-mismatch]
13
-
File "literals_literalstring.py", line 157, in func8: bad return type [bad-return-type]
13
+
File "literals_literalstring.py", line 162, in func8: bad return type [bad-return-type]
14
14
Called from (traceback):
15
-
line 160, in current file
16
-
File "literals_literalstring.py", line 162, in <module>: bool [assert-type]
15
+
line 166, in current file
16
+
File "literals_literalstring.py", line 162, in func8: bad return type [bad-return-type]
17
+
Called from (traceback):
18
+
line 165, in current file
19
+
File "literals_literalstring.py", line 167, in <module>: B [assert-type]
17
20
"""
18
21
conformance_automated = "Fail"
19
22
errors_diff = """
20
23
Line 66: Expected 1 errors
21
24
Line 120: Expected 1 errors
22
25
Line 134: Expected 1 errors
23
-
Line 166: Expected 1 errors
26
+
Line 171: Expected 1 errors
24
27
Line 8: Unexpected errors ['File "literals_literalstring.py", line 8, in <module>: typing.LiteralString not supported yet [not-supported-yet]']
25
28
Line 24: Unexpected errors ['File "literals_literalstring.py", line 24, in my_function: bad return type [bad-return-type]']
26
-
Line 157: Unexpected errors ['File "literals_literalstring.py", line 157, in func8: bad return type [bad-return-type]']
27
-
Line 162: Unexpected errors ['File "literals_literalstring.py", line 162, in <module>: bool [assert-type]']
29
+
Line 162: Unexpected errors ['File "literals_literalstring.py", line 162, in func8: bad return type [bad-return-type]', 'File "literals_literalstring.py", line 162, in func8: bad return type [bad-return-type]']
30
+
Line 167: Unexpected errors ['File "literals_literalstring.py", line 167, in <module>: B [assert-type]']
0 commit comments