Skip to content

Commit 652dde5

Browse files
committed
update results for other type checkers
1 parent 11875d9 commit 652dde5

12 files changed

+133
-121
lines changed

conformance/results/mypy/generics_defaults.toml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,31 @@ generics_defaults.py:24: error: "T" cannot appear after "DefaultStrT" in type pa
44
generics_defaults.py:30: error: Expression is of type "type[NoNonDefaults[DefaultStrT, DefaultIntT]]", not "type[NoNonDefaults[str, int]]" [assert-type]
55
generics_defaults.py:31: error: Expression is of type "type[NoNonDefaults[str, DefaultIntT]]", not "type[NoNonDefaults[str, int]]" [assert-type]
66
generics_defaults.py:38: error: Expression is of type "type[OneDefault[float, DefaultBoolT]]", not "type[OneDefault[float, bool]]" [assert-type]
7-
generics_defaults.py:45: error: Expression is of type "type[AllTheDefaults[T1, T2, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[Any, Any, str, int, bool]]" [assert-type]
8-
generics_defaults.py:46: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
9-
generics_defaults.py:50: error: Type application has too few types (expected between 2 and 5) [misc]
10-
generics_defaults.py:52: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
11-
generics_defaults.py:55: error: Expression is of type "type[AllTheDefaults[int, complex, str, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
12-
generics_defaults.py:59: error: Expression is of type "type[AllTheDefaults[int, complex, str, int, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
13-
generics_defaults.py:79: error: Expression is of type "type[Class_ParamSpec[DefaultP]]", not "type[Class_ParamSpec[[str, int]]]" [assert-type]
14-
generics_defaults.py:94: error: Expression is of type "type[Class_TypeVarTuple[*DefaultTs]]", not "type[Class_TypeVarTuple[str, int]]" [assert-type]
15-
generics_defaults.py:107: error: TypeVar default must be a subtype of the bound type [misc]
16-
generics_defaults.py:114: error: TypeVar default must be one of the constraint types [misc]
17-
generics_defaults.py:132: error: Expression is of type "int", not "Any" [assert-type]
18-
generics_defaults.py:156: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [float, bool]]]" [assert-type]
19-
generics_defaults.py:156: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]
20-
generics_defaults.py:157: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [bytes]]]" [assert-type]
21-
generics_defaults.py:157: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]
7+
generics_defaults.py:50: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
8+
generics_defaults.py:54: error: Type application has too few types (expected between 2 and 5) [misc]
9+
generics_defaults.py:56: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
10+
generics_defaults.py:59: error: Expression is of type "type[AllTheDefaults[int, complex, str, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
11+
generics_defaults.py:63: error: Expression is of type "type[AllTheDefaults[int, complex, str, int, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]
12+
generics_defaults.py:83: error: Expression is of type "type[Class_ParamSpec[DefaultP]]", not "type[Class_ParamSpec[[str, int]]]" [assert-type]
13+
generics_defaults.py:116: error: TypeVar default must be a subtype of the bound type [misc]
14+
generics_defaults.py:123: error: TypeVar default must be one of the constraint types [misc]
15+
generics_defaults.py:141: error: Expression is of type "int", not "Any" [assert-type]
16+
generics_defaults.py:165: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [float, bool]]]" [assert-type]
17+
generics_defaults.py:165: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]
18+
generics_defaults.py:166: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [bytes]]]" [assert-type]
19+
generics_defaults.py:166: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]
2220
"""
2321
conformance_automated = "Fail"
2422
errors_diff = """
25-
Line 143: Expected 1 errors
23+
Line 152: Expected 1 errors
2624
Line 30: Unexpected errors ['generics_defaults.py:30: error: Expression is of type "type[NoNonDefaults[DefaultStrT, DefaultIntT]]", not "type[NoNonDefaults[str, int]]" [assert-type]']
2725
Line 31: Unexpected errors ['generics_defaults.py:31: error: Expression is of type "type[NoNonDefaults[str, DefaultIntT]]", not "type[NoNonDefaults[str, int]]" [assert-type]']
2826
Line 38: Unexpected errors ['generics_defaults.py:38: error: Expression is of type "type[OneDefault[float, DefaultBoolT]]", not "type[OneDefault[float, bool]]" [assert-type]']
29-
Line 45: Unexpected errors ['generics_defaults.py:45: error: Expression is of type "type[AllTheDefaults[T1, T2, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[Any, Any, str, int, bool]]" [assert-type]']
30-
Line 46: Unexpected errors ['generics_defaults.py:46: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
31-
Line 52: Unexpected errors ['generics_defaults.py:52: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
32-
Line 55: Unexpected errors ['generics_defaults.py:55: error: Expression is of type "type[AllTheDefaults[int, complex, str, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
33-
Line 59: Unexpected errors ['generics_defaults.py:59: error: Expression is of type "type[AllTheDefaults[int, complex, str, int, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
34-
Line 79: Unexpected errors ['generics_defaults.py:79: error: Expression is of type "type[Class_ParamSpec[DefaultP]]", not "type[Class_ParamSpec[[str, int]]]" [assert-type]']
35-
Line 94: Unexpected errors ['generics_defaults.py:94: error: Expression is of type "type[Class_TypeVarTuple[*DefaultTs]]", not "type[Class_TypeVarTuple[str, int]]" [assert-type]']
36-
Line 156: Unexpected errors ['generics_defaults.py:156: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [float, bool]]]" [assert-type]', 'generics_defaults.py:156: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]']
37-
Line 157: Unexpected errors ['generics_defaults.py:157: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [bytes]]]" [assert-type]', 'generics_defaults.py:157: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]']
27+
Line 50: Unexpected errors ['generics_defaults.py:50: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
28+
Line 56: Unexpected errors ['generics_defaults.py:56: error: Expression is of type "type[AllTheDefaults[int, complex, DefaultStrT, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
29+
Line 59: Unexpected errors ['generics_defaults.py:59: error: Expression is of type "type[AllTheDefaults[int, complex, str, DefaultIntT, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
30+
Line 63: Unexpected errors ['generics_defaults.py:63: error: Expression is of type "type[AllTheDefaults[int, complex, str, int, DefaultBoolT]]", not "type[AllTheDefaults[int, complex, str, int, bool]]" [assert-type]']
31+
Line 83: Unexpected errors ['generics_defaults.py:83: error: Expression is of type "type[Class_ParamSpec[DefaultP]]", not "type[Class_ParamSpec[[str, int]]]" [assert-type]']
32+
Line 165: Unexpected errors ['generics_defaults.py:165: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [float, bool]]]" [assert-type]', 'generics_defaults.py:165: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]']
33+
Line 166: Unexpected errors ['generics_defaults.py:166: error: Expression is of type "type[Foo6[*tuple[Any, ...], Any]]", not "type[Foo6[int, str, [bytes]]]" [assert-type]', 'generics_defaults.py:166: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [misc]']
3834
"""

conformance/results/mypy/generics_defaults_referential.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ generics_defaults_referential.py:53: error: Type parameter "Start2T" has a defau
66
generics_defaults_referential.py:74: error: TypeVar default must be one of the constraint types [misc]
77
generics_defaults_referential.py:77: error: TypeVar default must be one of the constraint types [misc]
88
generics_defaults_referential.py:78: error: TypeVar default must be one of the constraint types [misc]
9-
generics_defaults_referential.py:94: error: Expression is of type "type[Bar[Z1, ListDefaultT]]", not "type[Bar[Any, list[Any]]]" [assert-type]
10-
generics_defaults_referential.py:95: error: Expression is of type "type[Bar[int, ListDefaultT]]", not "type[Bar[int, list[int]]]" [assert-type]
11-
generics_defaults_referential.py:96: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]
9+
generics_defaults_referential.py:101: error: Expression is of type "type[Bar[int, ListDefaultT]]", not "type[Bar[int, list[int]]]" [assert-type]
10+
generics_defaults_referential.py:102: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]
1211
"""
1312
conformance_automated = "Fail"
1413
errors_diff = """
@@ -17,7 +16,6 @@ Line 60: Expected 1 errors
1716
Line 68: Expected 1 errors
1817
Line 23: Unexpected errors ['generics_defaults_referential.py:23: error: Expression is of type "type[slice[StartT, StopT, StepT]]", not "type[slice[int, int, int | None]]" [assert-type]']
1918
Line 77: Unexpected errors ['generics_defaults_referential.py:77: error: TypeVar default must be one of the constraint types [misc]']
20-
Line 94: Unexpected errors ['generics_defaults_referential.py:94: error: Expression is of type "type[Bar[Z1, ListDefaultT]]", not "type[Bar[Any, list[Any]]]" [assert-type]']
21-
Line 95: Unexpected errors ['generics_defaults_referential.py:95: error: Expression is of type "type[Bar[int, ListDefaultT]]", not "type[Bar[int, list[int]]]" [assert-type]']
22-
Line 96: Unexpected errors ['generics_defaults_referential.py:96: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]']
19+
Line 101: Unexpected errors ['generics_defaults_referential.py:101: error: Expression is of type "type[Bar[int, ListDefaultT]]", not "type[Bar[int, list[int]]]" [assert-type]']
20+
Line 102: Unexpected errors ['generics_defaults_referential.py:102: error: Expression is of type "Bar[int, list[Never]]", not "Bar[int, list[int]]" [assert-type]']
2321
"""

conformance/results/mypy/generics_scoping.toml

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
output = """
2-
generics_scoping.py:29: error: Argument 1 to "meth_2" of "MyClass" has incompatible type "str"; expected "int" [arg-type]
3-
generics_scoping.py:50: error: Type variable "generics_scoping.S" is unbound [valid-type]
4-
generics_scoping.py:50: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class)
5-
generics_scoping.py:50: note: (Hint: Use "S" in function signature to bind "S" inside a function)
6-
generics_scoping.py:54: error: Type variable "generics_scoping.S" is unbound [valid-type]
7-
generics_scoping.py:54: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class)
8-
generics_scoping.py:54: note: (Hint: Use "S" in function signature to bind "S" inside a function)
9-
generics_scoping.py:65: error: Free type variable expected in Generic[...] [misc]
10-
generics_scoping.py:75: error: Type variable "T" is bound by an outer class [valid-type]
11-
generics_scoping.py:78: error: Type variable "generics_scoping.T" is unbound [valid-type]
12-
generics_scoping.py:78: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
13-
generics_scoping.py:78: note: (Hint: Use "T" in function signature to bind "T" inside a function)
14-
generics_scoping.py:87: error: Can't use bound type variable "T" to define generic alias [valid-type]
15-
generics_scoping.py:94: error: Type variable "generics_scoping.T" is unbound [valid-type]
16-
generics_scoping.py:94: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
17-
generics_scoping.py:94: note: (Hint: Use "T" in function signature to bind "T" inside a function)
18-
generics_scoping.py:95: error: Type variable "generics_scoping.T" is unbound [valid-type]
19-
generics_scoping.py:95: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
20-
generics_scoping.py:95: note: (Hint: Use "T" in function signature to bind "T" inside a function)
21-
generics_scoping.py:96: error: Type variable "generics_scoping.T" is unbound [valid-type]
22-
generics_scoping.py:96: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
23-
generics_scoping.py:96: note: (Hint: Use "T" in function signature to bind "T" inside a function)
2+
generics_scoping.py:16: error: Expression is of type "int", not "Literal[1]" [assert-type]
3+
generics_scoping.py:20: error: Expression is of type "str", not "Literal['a']" [assert-type]
4+
generics_scoping.py:34: error: Argument 1 to "meth_2" of "MyClass" has incompatible type "str"; expected "int" [arg-type]
5+
generics_scoping.py:50: error: Expression is of type "str", not "Literal['abc']" [assert-type]
6+
generics_scoping.py:54: error: Expression is of type "bytes", not "Literal[b'abc']" [assert-type]
7+
generics_scoping.py:61: error: Type variable "generics_scoping.S" is unbound [valid-type]
8+
generics_scoping.py:61: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class)
9+
generics_scoping.py:61: note: (Hint: Use "S" in function signature to bind "S" inside a function)
10+
generics_scoping.py:65: error: Type variable "generics_scoping.S" is unbound [valid-type]
11+
generics_scoping.py:65: note: (Hint: Use "Generic[S]" or "Protocol[S]" base class to bind "S" inside a class)
12+
generics_scoping.py:65: note: (Hint: Use "S" in function signature to bind "S" inside a function)
13+
generics_scoping.py:76: error: Free type variable expected in Generic[...] [misc]
14+
generics_scoping.py:86: error: Type variable "T" is bound by an outer class [valid-type]
15+
generics_scoping.py:89: error: Type variable "generics_scoping.T" is unbound [valid-type]
16+
generics_scoping.py:89: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
17+
generics_scoping.py:89: note: (Hint: Use "T" in function signature to bind "T" inside a function)
18+
generics_scoping.py:98: error: Can't use bound type variable "T" to define generic alias [valid-type]
19+
generics_scoping.py:105: error: Type variable "generics_scoping.T" is unbound [valid-type]
20+
generics_scoping.py:105: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
21+
generics_scoping.py:105: note: (Hint: Use "T" in function signature to bind "T" inside a function)
22+
generics_scoping.py:106: error: Type variable "generics_scoping.T" is unbound [valid-type]
23+
generics_scoping.py:106: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
24+
generics_scoping.py:106: note: (Hint: Use "T" in function signature to bind "T" inside a function)
25+
generics_scoping.py:107: error: Type variable "generics_scoping.T" is unbound [valid-type]
26+
generics_scoping.py:107: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
27+
generics_scoping.py:107: note: (Hint: Use "T" in function signature to bind "T" inside a function)
2428
"""
2529
conformance_automated = "Pass"
2630
errors_diff = """

conformance/results/mypy/generics_syntax_scoping.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ generics_syntax_scoping.py:95: error: "T" already defined as a type parameter [
1919
generics_syntax_scoping.py:98: error: "T" already defined as a type parameter [misc]
2020
generics_syntax_scoping.py:98: error: Variable "generics_syntax_scoping.ClassE.T" is not valid as a type [valid-type]
2121
generics_syntax_scoping.py:98: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
22-
generics_syntax_scoping.py:116: error: Expression is of type "Any", not "TypeVar" [assert-type]
23-
generics_syntax_scoping.py:116: note: "assert_type" expects everything to be "Any" in unchecked functions
24-
generics_syntax_scoping.py:121: error: Expression is of type "Any", not "complex" [assert-type]
25-
generics_syntax_scoping.py:121: note: "assert_type" expects everything to be "Any" in unchecked functions
26-
generics_syntax_scoping.py:124: error: Expression is of type "Any", not "complex" [assert-type]
27-
generics_syntax_scoping.py:124: note: "assert_type" expects everything to be "Any" in unchecked functions
22+
generics_syntax_scoping.py:117: error: Expression is of type "Any", not "TypeVar" [assert-type]
23+
generics_syntax_scoping.py:117: note: "assert_type" expects everything to be "Any" in unchecked functions
24+
generics_syntax_scoping.py:122: error: Expression is of type "Any", not "complex" [assert-type]
25+
generics_syntax_scoping.py:122: note: "assert_type" expects everything to be "Any" in unchecked functions
26+
generics_syntax_scoping.py:125: error: Expression is of type "Any", not "complex" [assert-type]
27+
generics_syntax_scoping.py:125: note: "assert_type" expects everything to be "Any" in unchecked functions
2828
"""
2929
conformance_automated = "Fail"
3030
errors_diff = """
3131
Line 62: Unexpected errors ['generics_syntax_scoping.py:62: error: Expression is of type "Any", not "str" [assert-type]']
3232
Line 67: Unexpected errors ['generics_syntax_scoping.py:67: error: Expression is of type "Any", not "int" [assert-type]']
33-
Line 116: Unexpected errors ['generics_syntax_scoping.py:116: error: Expression is of type "Any", not "TypeVar" [assert-type]']
34-
Line 121: Unexpected errors ['generics_syntax_scoping.py:121: error: Expression is of type "Any", not "complex" [assert-type]']
35-
Line 124: Unexpected errors ['generics_syntax_scoping.py:124: error: Expression is of type "Any", not "complex" [assert-type]']
33+
Line 117: Unexpected errors ['generics_syntax_scoping.py:117: error: Expression is of type "Any", not "TypeVar" [assert-type]']
34+
Line 122: Unexpected errors ['generics_syntax_scoping.py:122: error: Expression is of type "Any", not "complex" [assert-type]']
35+
Line 125: Unexpected errors ['generics_syntax_scoping.py:125: error: Expression is of type "Any", not "complex" [assert-type]']
3636
"""

0 commit comments

Comments
 (0)