Skip to content

Commit f2fdebb

Browse files
committed
Add the results for ZubanLS
1 parent 2d71f81 commit f2fdebb

File tree

139 files changed

+2704
-25
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+2704
-25
lines changed

conformance/results/results.html

Lines changed: 165 additions & 25 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
aliases_explicit.py:67: error: Bad number of arguments for type alias, expected 0, given 1
6+
aliases_explicit.py:68: error: Bad number of arguments for type alias, expected 0, given 1
7+
aliases_explicit.py:69: error: Bad number of arguments for type alias, expected 1, given 2
8+
aliases_explicit.py:70: error: Bad number of arguments for type alias, expected 1, given 2
9+
aliases_explicit.py:71: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "int"
10+
aliases_explicit.py:79: error: Invalid type alias: expression is not a valid type
11+
aliases_explicit.py:80: error: Bracketed expression "[...]" is not valid as a type
12+
aliases_explicit.py:80: note: Did you mean "List[...]"?
13+
aliases_explicit.py:81: error: Syntax error in type annotation
14+
aliases_explicit.py:81: note: Suggestion: Is there a spurious trailing comma?
15+
aliases_explicit.py:82: error: Invalid type alias: expression is not a valid type
16+
aliases_explicit.py:83: error: Invalid type alias: expression is not a valid type
17+
aliases_explicit.py:84: error: Invalid type alias: expression is not a valid type
18+
aliases_explicit.py:85: error: Invalid type alias: expression is not a valid type
19+
aliases_explicit.py:86: error: Invalid type alias: expression is not a valid type
20+
aliases_explicit.py:87: error: Variable "aliases_explicit.var1" is not valid as a type
21+
aliases_explicit.py:87: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
22+
aliases_explicit.py:88: error: Invalid type alias: expression is not a valid type
23+
aliases_explicit.py:89: error: Invalid type: try using Literal[1] instead?
24+
aliases_explicit.py:90: error: Invalid type alias: expression is not a valid type
25+
aliases_explicit.py:91: error: Invalid type alias: expression is not a valid type
26+
aliases_explicit.py:100: error: Bad number of arguments for type alias, expected 0, given 1
27+
aliases_explicit.py:101: error: "<typing special form>" not callable
28+
aliases_explicit.py:102: error: Bad number of arguments for type alias, expected 0, given 1
29+
"""
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
aliases_implicit.py:76: error: Bad number of arguments for type alias, expected 0, given 1
6+
aliases_implicit.py:77: error: Bad number of arguments for type alias, expected 0, given 1
7+
aliases_implicit.py:78: error: Bad number of arguments for type alias, expected 1, given 2
8+
aliases_implicit.py:79: error: Bad number of arguments for type alias, expected 1, given 2
9+
aliases_implicit.py:80: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "int"
10+
aliases_implicit.py:81: error: Type argument "str" of "GoodTypeAlias12" must be a subtype of "float"
11+
aliases_implicit.py:106: error: Variable "aliases_implicit.BadTypeAlias1" is not valid as a type
12+
aliases_implicit.py:106: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
13+
aliases_implicit.py:107: error: Variable "aliases_implicit.BadTypeAlias2" is not valid as a type
14+
aliases_implicit.py:107: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
15+
aliases_implicit.py:108: error: Variable "aliases_implicit.BadTypeAlias3" is not valid as a type
16+
aliases_implicit.py:108: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
17+
aliases_implicit.py:109: error: Variable "aliases_implicit.BadTypeAlias4" is not valid as a type
18+
aliases_implicit.py:109: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
19+
aliases_implicit.py:110: error: Variable "aliases_implicit.BadTypeAlias5" is not valid as a type
20+
aliases_implicit.py:110: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
21+
aliases_implicit.py:111: error: Variable "aliases_implicit.BadTypeAlias6" is not valid as a type
22+
aliases_implicit.py:111: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
23+
aliases_implicit.py:112: error: Variable "aliases_implicit.BadTypeAlias7" is not valid as a type
24+
aliases_implicit.py:112: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
25+
aliases_implicit.py:113: error: Variable "aliases_implicit.BadTypeAlias8" is not valid as a type
26+
aliases_implicit.py:113: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
27+
aliases_implicit.py:114: error: Variable "aliases_implicit.var1" is not valid as a type
28+
aliases_implicit.py:114: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
29+
aliases_implicit.py:115: error: Variable "aliases_implicit.BadTypeAlias10" is not valid as a type
30+
aliases_implicit.py:115: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
31+
aliases_implicit.py:116: error: Variable "aliases_implicit.BadTypeAlias11" is not valid as a type
32+
aliases_implicit.py:116: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
33+
aliases_implicit.py:117: error: Variable "aliases_implicit.BadTypeAlias12" is not valid as a type
34+
aliases_implicit.py:117: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
35+
aliases_implicit.py:118: error: Variable "aliases_implicit.BadTypeAlias13" is not valid as a type
36+
aliases_implicit.py:118: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
37+
aliases_implicit.py:119: error: Variable "aliases_implicit.BadTypeAlias14" is not valid as a type
38+
aliases_implicit.py:119: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
39+
aliases_implicit.py:133: error: "UnionType" not callable
40+
aliases_implicit.py:135: error: Bad number of arguments for type alias, expected 0, given 1
41+
"""
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
aliases_newtype.py:11: error: Argument 1 to "UserId" has incompatible type "str"; expected "int"
6+
aliases_newtype.py:12: error: Incompatible types in assignment (expression has type "int", variable has type "UserId")
7+
aliases_newtype.py:18: error: Incompatible types in assignment (expression has type "Type[UserId]", variable has type "Type[Any]")
8+
aliases_newtype.py:23: error: Cannot use isinstance() with NewType type
9+
aliases_newtype.py:26: error: Cannot subclass "NewType"
10+
aliases_newtype.py:35: error: String argument 1 "BadName" to NewType(...) does not match variable name "GoodName"
11+
aliases_newtype.py:41: error: Bad number of arguments for type alias, expected 0, given 1
12+
aliases_newtype.py:47: error: Argument 2 to NewType(...) must be subclassable (got "int | str")
13+
aliases_newtype.py:50: error: Type variable "aliases_newtype.T" is unbound
14+
aliases_newtype.py:50: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
15+
aliases_newtype.py:50: note: (Hint: Use "T" in function signature to bind "T" inside a function)
16+
aliases_newtype.py:52: error: NewType cannot be used with protocol classes
17+
aliases_newtype.py:54: error: Argument 2 to NewType(...) must be subclassable (got "Literal[7]")
18+
aliases_newtype.py:61: error: Argument 2 to NewType(...) must be subclassable (got "TD1")
19+
aliases_newtype.py:63: error: NewType(...) expects exactly two positional arguments
20+
aliases_newtype.py:65: error: Argument 2 to NewType(...) must be subclassable (got "Any")
21+
"""
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
aliases_recursive.py:19: error: Dict entry 1 has incompatible type "str": "complex"; expected "str": "None | int | str | float | list[Json] | dict[str, Json]"
6+
aliases_recursive.py:20: error: List item 1 has incompatible type "complex"; expected "None | int | str | float | list[Json] | dict[str, Json]"
7+
aliases_recursive.py:38: error: Incompatible types in assignment (expression has type "tuple[int, tuple[str, int], tuple[int, tuple[int, list[int]]]]", variable has type "str | int | tuple[RecursiveTuple, ...]")
8+
aliases_recursive.py:39: error: Name "t6" already defined on line 38
9+
aliases_recursive.py:39: error: Incompatible types in assignment (expression has type "tuple[int, list[int]]", variable has type "str | int | tuple[RecursiveTuple, ...]")
10+
aliases_recursive.py:50: error: Dict entry 0 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, str | int | Mapping[str, RecursiveMapping]]"
11+
aliases_recursive.py:51: error: Dict entry 2 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, str | int | Mapping[str, RecursiveMapping]]"
12+
aliases_recursive.py:52: error: Dict entry 2 has incompatible type "str": "list[int]"; expected "str": "str | int | Mapping[str, str | int | Mapping[str, RecursiveMapping]]"
13+
aliases_recursive.py:63: error: List item 0 has incompatible type "float"; expected "GenericTypeAlias1[str] | str"
14+
aliases_recursive.py:69: error: List item 0 has incompatible type "float"; expected "GenericTypeAlias2[str, int] | str | int"
15+
aliases_recursive.py:72: error: Invalid recursive alias: a union item of itself
16+
aliases_recursive.py:75: error: Invalid recursive alias: a union item of itself
17+
"""
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
aliases_type_statement.py:17: error: "TypeAliasType" has no attribute "bit_count"
6+
aliases_type_statement.py:19: error: "TypeAliasType" not callable
7+
aliases_type_statement.py:23: error: "TypeAliasType" has no attribute "other_attrib"
8+
aliases_type_statement.py:26: error: Type alias defined using "type" statement not valid as base class
9+
aliases_type_statement.py:31: error: Argument 2 to "isinstance" has incompatible type "TypeAliasType"; expected "Type[Any] | UnionType | tuple[_ClassInfo, ...]"
10+
aliases_type_statement.py:37: error: Invalid type alias: expression is not a valid type
11+
aliases_type_statement.py:38: error: Bracketed expression "[...]" is not valid as a type
12+
aliases_type_statement.py:38: note: Did you mean "List[...]"?
13+
aliases_type_statement.py:39: error: Syntax error in type annotation
14+
aliases_type_statement.py:39: note: Suggestion: Is there a spurious trailing comma?
15+
aliases_type_statement.py:40: error: Invalid type alias: expression is not a valid type
16+
aliases_type_statement.py:41: error: Invalid type alias: expression is not a valid type
17+
aliases_type_statement.py:42: error: Invalid type alias: expression is not a valid type
18+
aliases_type_statement.py:43: error: Invalid type alias: expression is not a valid type
19+
aliases_type_statement.py:44: error: Invalid type alias: expression is not a valid type
20+
aliases_type_statement.py:45: error: Variable "aliases_type_statement.var1" is not valid as a type
21+
aliases_type_statement.py:45: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
22+
aliases_type_statement.py:46: error: Invalid type alias: expression is not a valid type
23+
aliases_type_statement.py:47: error: Invalid type: try using Literal[1] instead?
24+
aliases_type_statement.py:48: error: Invalid type alias: expression is not a valid type
25+
aliases_type_statement.py:49: error: Invalid type alias: expression is not a valid type
26+
aliases_type_statement.py:52: error: Name "BadTypeAlias14" already defined on line 51
27+
aliases_type_statement.py:56: error: Type alias not allowed in function
28+
aliases_type_statement.py:62: error: All type parameters should be declared ("V" not declared)
29+
aliases_type_statement.py:67: error: All type parameters should be declared ("T1" not declared)
30+
aliases_type_statement.py:77: error: Type argument "str" of "RecursiveTypeAlias2" must be a subtype of "int"
31+
aliases_type_statement.py:79: error: Type argument "int" of "RecursiveTypeAlias2" must be a subtype of "str"
32+
aliases_type_statement.py:82: error: Invalid recursive alias: a union item of itself
33+
aliases_type_statement.py:84: error: Invalid recursive alias: a union item of itself
34+
aliases_type_statement.py:88: error: Invalid recursive alias: a union item of itself
35+
"""
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
conformant = "Partial"
2+
notes = """
3+
Incorrectly rejects the use of a class-scoped TypeVar in a TypeAliasType definition.
4+
Incorrectly allows type_params= to be an arbitrary tuple.
5+
"""
6+
conformance_automated = "Fail"
7+
errors_diff = """
8+
Line 45: Expected 1 errors
9+
Line 27: Unexpected errors ['aliases_typealiastype.py:27: error: Can\\'t use bound type variable "T" to define generic alias']
10+
"""
11+
output = """
12+
aliases_typealiastype.py:27: error: Can't use bound type variable "T" to define generic alias
13+
aliases_typealiastype.py:32: error: "TypeAliasType" has no attribute "other_attrib"
14+
aliases_typealiastype.py:40: error: Type argument "int" of "GoodAlias5" must be a subtype of "str"
15+
aliases_typealiastype.py:43: error: All type parameters should be declared ("S" not declared)
16+
aliases_typealiastype.py:44: error: All type parameters should be declared ("S" not declared)
17+
aliases_typealiastype.py:46: error: Invalid recursive alias: a union item of itself
18+
aliases_typealiastype.py:47: error: Invalid recursive alias: a union item of itself
19+
aliases_typealiastype.py:48: error: Variable "aliases_typealiastype.BadAlias7" is not valid as a type
20+
aliases_typealiastype.py:48: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
21+
aliases_typealiastype.py:52: error: Invalid type alias: expression is not a valid type
22+
aliases_typealiastype.py:53: error: Bracketed expression "[...]" is not valid as a type
23+
aliases_typealiastype.py:53: note: Did you mean "List[...]"?
24+
aliases_typealiastype.py:54: error: Syntax error in type annotation
25+
aliases_typealiastype.py:54: note: Suggestion: Is there a spurious trailing comma?
26+
aliases_typealiastype.py:55: error: Invalid type alias: expression is not a valid type
27+
aliases_typealiastype.py:56: error: Invalid type alias: expression is not a valid type
28+
aliases_typealiastype.py:57: error: Invalid type alias: expression is not a valid type
29+
aliases_typealiastype.py:58: error: Invalid type alias: expression is not a valid type
30+
aliases_typealiastype.py:59: error: Invalid type alias: expression is not a valid type
31+
aliases_typealiastype.py:60: error: Variable "aliases_typealiastype.var1" is not valid as a type
32+
aliases_typealiastype.py:60: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
33+
aliases_typealiastype.py:61: error: Invalid type alias: expression is not a valid type
34+
aliases_typealiastype.py:62: error: Invalid type: try using Literal[1] instead?
35+
aliases_typealiastype.py:63: error: Invalid type alias: expression is not a valid type
36+
aliases_typealiastype.py:64: error: Invalid type alias: expression is not a valid type
37+
aliases_typealiastype.py:66: error: Name "BadAlias21" is used before definition
38+
"""
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
aliases_variance.py:24: error: Variance of TypeVar "T_co" incompatible with variance in parent type
6+
aliases_variance.py:28: error: Variance of TypeVar "T_co" incompatible with variance in parent type
7+
aliases_variance.py:32: error: Variance of TypeVar "T_co" incompatible with variance in parent type
8+
aliases_variance.py:44: error: Variance of TypeVar "T_contra" incompatible with variance in parent type
9+
"""
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
conformance_automated = "Pass"
2+
errors_diff = """
3+
"""
4+
output = """
5+
"""
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
conformant = "Partial"
2+
notes = """
3+
Does not report error for a forward reference that is not enclosed in quotes.
4+
Incorrectly generates error for quoted type defined in class scope.
5+
Does not ignore newlines in multi-line unions
6+
"""
7+
conformance_automated = "Fail"
8+
errors_diff = """
9+
Line 22: Expected 1 errors
10+
Line 23: Expected 1 errors
11+
Line 24: Expected 1 errors
12+
Line 25: Expected 1 errors
13+
Line 66: Expected 1 errors
14+
Line 82: Unexpected errors ['annotations_forward_refs.py:82: error: Name "str" is not defined']
15+
Line 87: Unexpected errors ['annotations_forward_refs.py:87: error: Function "annotations_forward_refs.ClassD.int" is not valid as a type']
16+
Line 95: Unexpected errors ['annotations_forward_refs.py:95: error: Expression is of type "Any", not "str"']
17+
Line 96: Unexpected errors ['annotations_forward_refs.py:96: error: Expression is of type "Any", not "int"']
18+
Line 104: Unexpected errors ['annotations_forward_refs.py:104: error: invalid syntax']
19+
Line 105: Unexpected errors ['annotations_forward_refs.py:105: error: invalid syntax', 'annotations_forward_refs.py:105: error: invalid syntax']
20+
"""
21+
output = """
22+
annotations_forward_refs.py:41: error: Invalid type comment or annotation
23+
annotations_forward_refs.py:42: error: Bracketed expression "[...]" is not valid as a type
24+
annotations_forward_refs.py:42: note: Did you mean "List[...]"?
25+
annotations_forward_refs.py:43: error: Syntax error in type annotation
26+
annotations_forward_refs.py:43: note: Suggestion: Use Tuple[T1, ..., Tn] instead of (T1, ..., Tn)
27+
annotations_forward_refs.py:44: error: Invalid type comment or annotation
28+
annotations_forward_refs.py:45: error: Invalid type comment or annotation
29+
annotations_forward_refs.py:46: error: Invalid type comment or annotation
30+
annotations_forward_refs.py:47: error: Invalid type comment or annotation
31+
annotations_forward_refs.py:48: error: Invalid type comment or annotation
32+
annotations_forward_refs.py:49: error: Variable "annotations_forward_refs.var1" is not valid as a type
33+
annotations_forward_refs.py:49: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
34+
annotations_forward_refs.py:50: error: Invalid type comment or annotation
35+
annotations_forward_refs.py:51: error: Invalid type: try using Literal[1] instead?
36+
annotations_forward_refs.py:52: error: Invalid type comment or annotation
37+
annotations_forward_refs.py:53: error: Invalid type comment or annotation
38+
annotations_forward_refs.py:54: error: Invalid type comment or annotation
39+
annotations_forward_refs.py:55: error: Module "types" is not valid as a type
40+
annotations_forward_refs.py:55: note: Perhaps you meant to use a protocol matching the module structure?
41+
annotations_forward_refs.py:80: error: Name "ClassF" is not defined
42+
annotations_forward_refs.py:82: error: Name "str" is not defined
43+
annotations_forward_refs.py:87: error: Function "annotations_forward_refs.ClassD.int" is not valid as a type
44+
annotations_forward_refs.py:87: note: Perhaps you need "Callable[...]" or a callback protocol?
45+
annotations_forward_refs.py:89: error: Function "annotations_forward_refs.ClassD.int" is not valid as a type
46+
annotations_forward_refs.py:89: note: Perhaps you need "Callable[...]" or a callback protocol?
47+
annotations_forward_refs.py:95: error: Expression is of type "Any", not "str"
48+
annotations_forward_refs.py:96: error: Expression is of type "Any", not "int"
49+
annotations_forward_refs.py:104: error: invalid syntax
50+
annotations_forward_refs.py:105: error: invalid syntax
51+
annotations_forward_refs.py:105: error: invalid syntax
52+
"""

0 commit comments

Comments
 (0)