Skip to content

Commit 9f9eed9

Browse files
committed
update results
1 parent 9a04315 commit 9f9eed9

File tree

6 files changed

+43
-58
lines changed

6 files changed

+43
-58
lines changed
Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
conformant = "Partial"
2-
notes = """
3-
Does not reject type alias defined in function scope.
4-
"""
1+
conformant = "Pass"
52
output = """
63
aliases_type_statement.py:17: error: "TypeAliasType" has no attribute "bit_count" [attr-defined]
74
aliases_type_statement.py:19: error: "TypeAliasType" not callable [operator]
@@ -24,18 +21,16 @@ aliases_type_statement.py:46: error: Invalid type: try using Literal[True] inste
2421
aliases_type_statement.py:47: error: Invalid type: try using Literal[1] instead? [valid-type]
2522
aliases_type_statement.py:48: error: Invalid type alias: expression is not a valid type [valid-type]
2623
aliases_type_statement.py:49: error: Invalid type alias: expression is not a valid type [valid-type]
27-
aliases_type_statement.py:52: error: Name "BadTypeAlias14" already defined on line 51 [no-redef]
28-
aliases_type_statement.py:62: error: All type parameters should be declared ("V" not declared) [valid-type]
29-
aliases_type_statement.py:67: error: All type parameters should be declared ("T1" not declared) [valid-type]
30-
aliases_type_statement.py:77: error: Type argument "str" of "RecursiveTypeAlias2" must be a subtype of "int" [type-var]
31-
aliases_type_statement.py:79: error: Type argument "int" of "RecursiveTypeAlias2" must be a subtype of "str" [type-var]
32-
aliases_type_statement.py:82: error: Cannot resolve name "RecursiveTypeAlias3" (possible cyclic definition) [misc]
33-
aliases_type_statement.py:84: error: Invalid recursive alias: a union item of itself [misc]
34-
aliases_type_statement.py:88: error: Cannot resolve name "RecursiveTypeAlias6" (possible cyclic definition) [misc]
35-
aliases_type_statement.py:88: error: Cannot resolve name "RecursiveTypeAlias7" (possible cyclic definition) [misc]
36-
aliases_type_statement.py:89: error: Cannot resolve name "RecursiveTypeAlias7" (possible cyclic definition) [misc]
24+
aliases_type_statement.py:53: error: All type parameters should be declared ("V" not declared) [valid-type]
25+
aliases_type_statement.py:58: error: All type parameters should be declared ("T1" not declared) [valid-type]
26+
aliases_type_statement.py:68: error: Type argument "str" of "RecursiveTypeAlias2" must be a subtype of "int" [type-var]
27+
aliases_type_statement.py:70: error: Type argument "int" of "RecursiveTypeAlias2" must be a subtype of "str" [type-var]
28+
aliases_type_statement.py:73: error: Cannot resolve name "RecursiveTypeAlias3" (possible cyclic definition) [misc]
29+
aliases_type_statement.py:75: error: Invalid recursive alias: a union item of itself [misc]
30+
aliases_type_statement.py:79: error: Cannot resolve name "RecursiveTypeAlias6" (possible cyclic definition) [misc]
31+
aliases_type_statement.py:79: error: Cannot resolve name "RecursiveTypeAlias7" (possible cyclic definition) [misc]
32+
aliases_type_statement.py:80: error: Cannot resolve name "RecursiveTypeAlias7" (possible cyclic definition) [misc]
3733
"""
38-
conformance_automated = "Fail"
34+
conformance_automated = "Pass"
3935
errors_diff = """
40-
Line 56: Expected 1 errors
4136
"""

conformance/results/pyrefly/aliases_type_statement.toml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@ ERROR aliases_type_statement.py:46:23-27: Bool literal cannot be used in annotat
2323
ERROR aliases_type_statement.py:47:23-24: Number literal cannot be used in annotations [invalid-annotation]
2424
ERROR aliases_type_statement.py:48:23-34: Boolean operation cannot be used in annotations [invalid-annotation]
2525
ERROR aliases_type_statement.py:49:23-33: F-string cannot be used in annotations [invalid-annotation]
26-
ERROR aliases_type_statement.py:52:6-20: Cannot redefine existing type alias `BadTypeAlias14` [redefinition]
27-
ERROR aliases_type_statement.py:56:5-30: `type` statement is not allowed in this context [invalid-syntax]
28-
ERROR aliases_type_statement.py:62:15-25: Type parameters used in `TA1` but not declared [invalid-type-var]
29-
ERROR aliases_type_statement.py:67:12-20: Type parameters used in `TA2` but not declared [invalid-type-var]
30-
ERROR aliases_type_statement.py:77:7-41: `str` is not assignable to upper bound `int` of type variable `S` [bad-specialization]
31-
ERROR aliases_type_statement.py:79:7-41: `int` is not assignable to upper bound `str` of type variable `T` [bad-specialization]
32-
ERROR aliases_type_statement.py:82:28-47: Found cyclic self-reference in `RecursiveTypeAlias3` [invalid-type-alias]
33-
ERROR aliases_type_statement.py:84:31-59: Found cyclic self-reference in `RecursiveTypeAlias4` [invalid-type-alias]
34-
ERROR aliases_type_statement.py:88:28-47: Found cyclic self-reference in `RecursiveTypeAlias6` [invalid-type-alias]
35-
ERROR aliases_type_statement.py:89:28-47: Found cyclic self-reference in `RecursiveTypeAlias7` [invalid-type-alias]
26+
ERROR aliases_type_statement.py:53:15-25: Type parameters used in `TA1` but not declared [invalid-type-var]
27+
ERROR aliases_type_statement.py:58:12-20: Type parameters used in `TA2` but not declared [invalid-type-var]
28+
ERROR aliases_type_statement.py:68:7-41: `str` is not assignable to upper bound `int` of type variable `S` [bad-specialization]
29+
ERROR aliases_type_statement.py:70:7-41: `int` is not assignable to upper bound `str` of type variable `T` [bad-specialization]
30+
ERROR aliases_type_statement.py:73:28-47: Found cyclic self-reference in `RecursiveTypeAlias3` [invalid-type-alias]
31+
ERROR aliases_type_statement.py:75:31-59: Found cyclic self-reference in `RecursiveTypeAlias4` [invalid-type-alias]
32+
ERROR aliases_type_statement.py:79:28-47: Found cyclic self-reference in `RecursiveTypeAlias6` [invalid-type-alias]
33+
ERROR aliases_type_statement.py:80:28-47: Found cyclic self-reference in `RecursiveTypeAlias7` [invalid-type-alias]
3634
"""

conformance/results/pyright/aliases_type_statement.toml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,17 @@ aliases_type_statement.py:46:23 - error: Expected class but received "Literal[Tr
3636
aliases_type_statement.py:47:23 - error: Expected class but received "Literal[1]" (reportGeneralTypeIssues)
3737
aliases_type_statement.py:48:23 - error: Binary operator not allowed in type expression (reportInvalidTypeForm)
3838
aliases_type_statement.py:49:23 - error: Type expressions cannot use format string literals (f-strings) (reportGeneralTypeIssues)
39-
aliases_type_statement.py:51:6 - error: Type alias declaration "BadTypeAlias14" is obscured by a declaration of the same name (reportRedeclaration)
40-
aliases_type_statement.py:56:10 - error: A type statement can be used only within a module or class scope (reportGeneralTypeIssues)
41-
aliases_type_statement.py:62:23 - error: Type parameter "V" is not included in the type parameter list for "TA1" (reportGeneralTypeIssues)
42-
aliases_type_statement.py:67:17 - error: Type parameter "T1" is not included in the type parameter list for "TA2" (reportGeneralTypeIssues)
43-
aliases_type_statement.py:77:7 - error: Could not specialize type "RecursiveTypeAlias2[S@RecursiveTypeAlias2, T@RecursiveTypeAlias2, P@RecursiveTypeAlias2]"
39+
aliases_type_statement.py:53:23 - error: Type parameter "V" is not included in the type parameter list for "TA1" (reportGeneralTypeIssues)
40+
aliases_type_statement.py:58:17 - error: Type parameter "T1" is not included in the type parameter list for "TA2" (reportGeneralTypeIssues)
41+
aliases_type_statement.py:68:7 - error: Could not specialize type "RecursiveTypeAlias2[S@RecursiveTypeAlias2, T@RecursiveTypeAlias2, P@RecursiveTypeAlias2]"
4442
  Type "str" is not assignable to type "int"
4543
    "str" is not assignable to "int" (reportInvalidTypeForm)
46-
aliases_type_statement.py:79:7 - error: Could not specialize type "RecursiveTypeAlias2[S@RecursiveTypeAlias2, T@RecursiveTypeAlias2, P@RecursiveTypeAlias2]"
44+
aliases_type_statement.py:70:7 - error: Could not specialize type "RecursiveTypeAlias2[S@RecursiveTypeAlias2, T@RecursiveTypeAlias2, P@RecursiveTypeAlias2]"
4745
  Type "int" is not assignable to type "str"
4846
    "int" is not assignable to "str" (reportInvalidTypeForm)
49-
aliases_type_statement.py:82:28 - error: Type alias "RecursiveTypeAlias3" cannot use itself in its definition (reportGeneralTypeIssues)
50-
aliases_type_statement.py:84:31 - error: Type alias "RecursiveTypeAlias4" cannot use itself in its definition (reportGeneralTypeIssues)
51-
aliases_type_statement.py:88:28 - error: Type alias "RecursiveTypeAlias6" cannot use itself in its definition (reportGeneralTypeIssues)
47+
aliases_type_statement.py:73:28 - error: Type alias "RecursiveTypeAlias3" cannot use itself in its definition (reportGeneralTypeIssues)
48+
aliases_type_statement.py:75:31 - error: Type alias "RecursiveTypeAlias4" cannot use itself in its definition (reportGeneralTypeIssues)
49+
aliases_type_statement.py:79:28 - error: Type alias "RecursiveTypeAlias6" cannot use itself in its definition (reportGeneralTypeIssues)
5250
"""
5351
conformance_automated = "Pass"
5452
errors_diff = """

conformance/results/results.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,11 +555,11 @@ <h3>Python Type System Conformance Test Results</h3>
555555
<th class="column col2 not-conformant">Unsupported</th>
556556
</tr>
557557
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aliases_type_statement</th>
558-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not reject type alias defined in function scope.</p></span></div></th>
559558
<th class="column col2 conformant">Pass</th>
560559
<th class="column col2 conformant">Pass</th>
561560
<th class="column col2 conformant">Pass</th>
562-
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not reject use of the `type` statement inside functions.</p><p>Does not reject circular definitions of type aliases.</p><p>Does not reject redeclarations of type aliases.</p><p>Does not support `type` statements generic over `TypeVarTuple`s.</p></span></div></th>
561+
<th class="column col2 conformant">Pass</th>
562+
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Does not reject circular definitions of type aliases.</p><p>Does not support `type` statements generic over `TypeVarTuple`s.</p></span></div></th>
563563
</tr>
564564
<tr><th class="column col1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;aliases_typealiastype</th>
565565
<th class="column col2 partially-conformant"><div class="hover-text">Partial<span class="tooltip-text" id="bottom"><p>Incorrectly rejects some recursive type aliases using TypeAliasType.</p><p>Incorrectly rejects the use of a class-scoped TypeVar in a TypeAliasType definition.</p></span></div></th>

conformance/results/ty/aliases_type_statement.toml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
conformance_automated = "Fail"
22
conformant = "Partial"
33
notes = """
4-
Does not reject use of the `type` statement inside functions.
54
Does not reject circular definitions of type aliases.
6-
Does not reject redeclarations of type aliases.
75
Does not support `type` statements generic over `TypeVarTuple`s.
86
"""
97
errors_diff = """
10-
Line 56: Expected 1 errors
11-
Line 84: Expected 1 errors
12-
Lines 51, 52: Expected error (tag 'TA14')
8+
Line 75: Expected 1 errors
139
Line 10: Unexpected errors ['aliases_type_statement.py:10:52: error[invalid-type-arguments] Too many type arguments: expected 2, got 3', 'aliases_type_statement.py:10:52: error[invalid-type-form] `...` is not allowed in this context in a type alias value']
1410
"""
1511
output = """
@@ -33,11 +29,11 @@ aliases_type_statement.py:46:23: error[invalid-type-form] Boolean literals are n
3329
aliases_type_statement.py:47:23: error[invalid-type-form] Int literals are not allowed in this context in a type alias value: Did you mean `typing.Literal[1]`?
3430
aliases_type_statement.py:48:23: error[invalid-type-form] Boolean operations are not allowed in type alias values
3531
aliases_type_statement.py:49:23: error[invalid-type-form] F-strings are not allowed in type alias values
36-
aliases_type_statement.py:62:23: error[unbound-type-variable] Type variable `V` is not bound to any outer generic context
37-
aliases_type_statement.py:67:17: error[unbound-type-variable] Type variable `T1` is not bound to any outer generic context
38-
aliases_type_statement.py:77:27: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int` of type variable `S@RecursiveTypeAlias2`
39-
aliases_type_statement.py:79:32: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `T@RecursiveTypeAlias2`
40-
aliases_type_statement.py:82:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias3`
41-
aliases_type_statement.py:88:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias6`
42-
aliases_type_statement.py:89:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias7`
32+
aliases_type_statement.py:53:23: error[unbound-type-variable] Type variable `V` is not bound to any outer generic context
33+
aliases_type_statement.py:58:17: error[unbound-type-variable] Type variable `T1` is not bound to any outer generic context
34+
aliases_type_statement.py:68:27: error[invalid-type-arguments] Type `str` is not assignable to upper bound `int` of type variable `S@RecursiveTypeAlias2`
35+
aliases_type_statement.py:70:32: error[invalid-type-arguments] Type `int` is not assignable to upper bound `str` of type variable `T@RecursiveTypeAlias2`
36+
aliases_type_statement.py:73:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias3`
37+
aliases_type_statement.py:79:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias6`
38+
aliases_type_statement.py:80:1: error[cyclic-type-alias-definition] Cyclic definition of `RecursiveTypeAlias7`
4339
"""

conformance/results/zuban/aliases_type_statement.toml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@ aliases_type_statement.py:46: error: Invalid type alias: expression is not a val
2323
aliases_type_statement.py:47: error: Invalid type: try using Literal[1] instead? [valid-type]
2424
aliases_type_statement.py:48: error: Invalid type alias: expression is not a valid type [valid-type]
2525
aliases_type_statement.py:49: error: Invalid type alias: expression is not a valid type [valid-type]
26-
aliases_type_statement.py:52: error: Name "BadTypeAlias14" already defined on line 51 [no-redef]
27-
aliases_type_statement.py:56: error: Type alias not allowed in function [misc]
28-
aliases_type_statement.py:62: error: All type parameters should be declared ("V" not declared) [misc]
29-
aliases_type_statement.py:67: error: All type parameters should be declared ("T1" not declared) [misc]
30-
aliases_type_statement.py:77: error: Type argument "str" of "RecursiveTypeAlias2" must be a subtype of "int" [type-var]
31-
aliases_type_statement.py:79: error: Type argument "int" of "RecursiveTypeAlias2" must be a subtype of "str" [type-var]
32-
aliases_type_statement.py:82: error: Invalid recursive alias: a union item of itself [misc]
33-
aliases_type_statement.py:84: error: Invalid recursive alias: a union item of itself [misc]
34-
aliases_type_statement.py:88: error: Invalid recursive alias: a union item of itself [misc]
26+
aliases_type_statement.py:53: error: All type parameters should be declared ("V" not declared) [misc]
27+
aliases_type_statement.py:58: error: All type parameters should be declared ("T1" not declared) [misc]
28+
aliases_type_statement.py:68: error: Type argument "str" of "RecursiveTypeAlias2" must be a subtype of "int" [type-var]
29+
aliases_type_statement.py:70: error: Type argument "int" of "RecursiveTypeAlias2" must be a subtype of "str" [type-var]
30+
aliases_type_statement.py:73: error: Invalid recursive alias: a union item of itself [misc]
31+
aliases_type_statement.py:75: error: Invalid recursive alias: a union item of itself [misc]
32+
aliases_type_statement.py:79: error: Invalid recursive alias: a union item of itself [misc]
3533
"""

0 commit comments

Comments
 (0)