Skip to content

Commit 5c92562

Browse files
authored
Zuban executable changes (#2079)
1 parent 8fd3f9c commit 5c92562

File tree

128 files changed

+1338
-1338
lines changed

Some content is hidden

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

128 files changed

+1338
-1338
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version = "pyright 1.1.403"
1+
version = "pyright 1.1.404"

conformance/results/results.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ <h3>Python Type System Conformance Test Results</h3>
160160
<tr><th class="col1">&nbsp;</th>
161161
<th class='tc-header'><div class='tc-name'>mypy 1.17.1</div>
162162
</th>
163-
<th class='tc-header'><div class='tc-name'>pyright 1.1.403</div>
163+
<th class='tc-header'><div class='tc-name'>pyright 1.1.404</div>
164164
</th>
165165
<th class='tc-header'><div class='tc-name'>pyre 0.9.25</div>
166166
</th>
167-
<th class='tc-header'><div class='tc-name'>zuban 0.0.19</div>
167+
<th class='tc-header'><div class='tc-name'>zuban 0.0.20</div>
168168
</th>
169169
</tr>
170170
<tr><th class="column" colspan="5">

conformance/results/zuban/aliases_explicit.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@ conformance_automated = "Pass"
22
errors_diff = """
33
"""
44
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
5+
aliases_explicit.py:67: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
6+
aliases_explicit.py:68: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
7+
aliases_explicit.py:69: error: Bad number of arguments for type alias, expected 1, given 2 [misc]
8+
aliases_explicit.py:70: error: Bad number of arguments for type alias, expected 1, given 2 [misc]
9+
aliases_explicit.py:71: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "int" [misc]
10+
aliases_explicit.py:79: error: Invalid type alias: expression is not a valid type [valid-type]
11+
aliases_explicit.py:80: error: Bracketed expression "[...]" is not valid as a type [valid-type]
1212
aliases_explicit.py:80: note: Did you mean "List[...]"?
13-
aliases_explicit.py:81: error: Syntax error in type annotation
13+
aliases_explicit.py:81: error: Syntax error in type annotation [valid-type]
1414
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
15+
aliases_explicit.py:82: error: Invalid type alias: expression is not a valid type [valid-type]
16+
aliases_explicit.py:83: error: Invalid type alias: expression is not a valid type [valid-type]
17+
aliases_explicit.py:84: error: Invalid type alias: expression is not a valid type [valid-type]
18+
aliases_explicit.py:85: error: Invalid type alias: expression is not a valid type [valid-type]
19+
aliases_explicit.py:86: error: Invalid type alias: expression is not a valid type [valid-type]
20+
aliases_explicit.py:87: error: Variable "aliases_explicit.var1" is not valid as a type [valid-type]
2121
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
22+
aliases_explicit.py:88: error: Invalid type alias: expression is not a valid type [valid-type]
23+
aliases_explicit.py:89: error: Invalid type: try using Literal[1] instead? [valid-type]
24+
aliases_explicit.py:90: error: Invalid type alias: expression is not a valid type [valid-type]
25+
aliases_explicit.py:91: error: Invalid type alias: expression is not a valid type [valid-type]
26+
aliases_explicit.py:100: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
27+
aliases_explicit.py:101: error: "<typing special form>" not callable [operator]
28+
aliases_explicit.py:102: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
2929
"""

conformance/results/zuban/aliases_implicit.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,40 @@ conformance_automated = "Pass"
22
errors_diff = """
33
"""
44
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
5+
aliases_implicit.py:76: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
6+
aliases_implicit.py:77: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
7+
aliases_implicit.py:78: error: Bad number of arguments for type alias, expected 1, given 2 [misc]
8+
aliases_implicit.py:79: error: Bad number of arguments for type alias, expected 1, given 2 [misc]
9+
aliases_implicit.py:80: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "int" [misc]
10+
aliases_implicit.py:81: error: Type argument "str" of "GoodTypeAlias12" must be a subtype of "float" [type-var]
11+
aliases_implicit.py:106: error: Variable "aliases_implicit.BadTypeAlias1" is not valid as a type [valid-type]
1212
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
13+
aliases_implicit.py:107: error: Variable "aliases_implicit.BadTypeAlias2" is not valid as a type [valid-type]
1414
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
15+
aliases_implicit.py:108: error: Variable "aliases_implicit.BadTypeAlias3" is not valid as a type [valid-type]
1616
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
17+
aliases_implicit.py:109: error: Variable "aliases_implicit.BadTypeAlias4" is not valid as a type [valid-type]
1818
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
19+
aliases_implicit.py:110: error: Variable "aliases_implicit.BadTypeAlias5" is not valid as a type [valid-type]
2020
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
21+
aliases_implicit.py:111: error: Variable "aliases_implicit.BadTypeAlias6" is not valid as a type [valid-type]
2222
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
23+
aliases_implicit.py:112: error: Variable "aliases_implicit.BadTypeAlias7" is not valid as a type [valid-type]
2424
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
25+
aliases_implicit.py:113: error: Variable "aliases_implicit.BadTypeAlias8" is not valid as a type [valid-type]
2626
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
27+
aliases_implicit.py:114: error: Variable "aliases_implicit.var1" is not valid as a type [valid-type]
2828
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
29+
aliases_implicit.py:115: error: Variable "aliases_implicit.BadTypeAlias10" is not valid as a type [valid-type]
3030
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
31+
aliases_implicit.py:116: error: Variable "aliases_implicit.BadTypeAlias11" is not valid as a type [valid-type]
3232
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
33+
aliases_implicit.py:117: error: Variable "aliases_implicit.BadTypeAlias12" is not valid as a type [valid-type]
3434
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
35+
aliases_implicit.py:118: error: Variable "aliases_implicit.BadTypeAlias13" is not valid as a type [valid-type]
3636
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
37+
aliases_implicit.py:119: error: Variable "aliases_implicit.BadTypeAlias14" is not valid as a type [valid-type]
3838
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
39+
aliases_implicit.py:133: error: "UnionType" not callable [operator]
40+
aliases_implicit.py:135: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
4141
"""

conformance/results/zuban/aliases_newtype.toml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ conformance_automated = "Pass"
22
errors_diff = """
33
"""
44
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
5+
aliases_newtype.py:11: error: Argument 1 to "UserId" has incompatible type "str"; expected "int" [arg-type]
6+
aliases_newtype.py:12: error: Incompatible types in assignment (expression has type "int", variable has type "UserId") [assignment]
7+
aliases_newtype.py:18: error: Incompatible types in assignment (expression has type "Type[UserId]", variable has type "Type[Any]") [assignment]
8+
aliases_newtype.py:23: error: Cannot use isinstance() with NewType type [misc]
9+
aliases_newtype.py:26: error: Cannot subclass "NewType" [misc]
10+
aliases_newtype.py:35: error: String argument 1 "BadName" to NewType(...) does not match variable name "GoodName" [misc]
11+
aliases_newtype.py:41: error: Bad number of arguments for type alias, expected 0, given 1 [misc]
12+
aliases_newtype.py:47: error: Argument 2 to NewType(...) must be subclassable (got "int | str") [valid-newtype]
13+
aliases_newtype.py:50: error: Type variable "aliases_newtype.T" is unbound [misc]
1414
aliases_newtype.py:50: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
1515
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")
16+
aliases_newtype.py:52: error: NewType cannot be used with protocol classes [misc]
17+
aliases_newtype.py:54: error: Argument 2 to NewType(...) must be subclassable (got "Literal[7]") [valid-newtype]
18+
aliases_newtype.py:61: error: Argument 2 to NewType(...) must be subclassable (got "TD1") [valid-newtype]
19+
aliases_newtype.py:63: error: NewType(...) expects exactly two positional arguments [call-arg]
20+
aliases_newtype.py:65: error: Argument 2 to NewType(...) must be subclassable (got "Any") [valid-newtype]
2121
"""

conformance/results/zuban/aliases_recursive.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ conformance_automated = "Pass"
22
errors_diff = """
33
"""
44
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
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]" [dict-item]
6+
aliases_recursive.py:20: error: List item 1 has incompatible type "complex"; expected "None | int | str | float | list[Json] | dict[str, Json]" [list-item]
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, ...]") [assignment]
8+
aliases_recursive.py:39: error: Name "t6" already defined on line 38 [no-redef]
9+
aliases_recursive.py:39: error: Incompatible types in assignment (expression has type "tuple[int, list[int]]", variable has type "str | int | tuple[RecursiveTuple, ...]") [assignment]
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]]" [dict-item]
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]]" [dict-item]
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]]" [dict-item]
13+
aliases_recursive.py:63: error: List item 0 has incompatible type "float"; expected "GenericTypeAlias1[str] | str" [list-item]
14+
aliases_recursive.py:69: error: List item 0 has incompatible type "float"; expected "GenericTypeAlias2[str, int] | str | int" [list-item]
15+
aliases_recursive.py:72: error: Invalid recursive alias: a union item of itself [misc]
16+
aliases_recursive.py:75: error: Invalid recursive alias: a union item of itself [misc]
1717
"""

0 commit comments

Comments
 (0)