Skip to content

Commit a79b87f

Browse files
authored
Updated conformance test results for pyright 1.1.365. (#1755)
There are no changes to the top-level conformance results, but some of pyright's error messages changed (for improved clarity), and this results in changes to the diffs from previous versions.
1 parent 84008aa commit a79b87f

17 files changed

+56
-47
lines changed

conformance/results/mypy/version.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version = "mypy 1.10.0"
2-
test_duration = 1.4
2+
test_duration = 1.5

conformance/results/pyre/version.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
version = "pyre 0.9.21"
2-
test_duration = 3.4
2+
test_duration = 4.1

conformance/results/pyright/aliases_explicit.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ aliases_explicit.py:82:21 - error: Expected type expression but received "list[t
2222
aliases_explicit.py:83:21 - error: Invalid expression form for type alias definition (reportInvalidTypeForm)
2323
aliases_explicit.py:83:21 - error: Dictionary expression not allowed in type annotation
2424
  Use Dict[T1, T2] to indicate a dictionary type (reportInvalidTypeForm)
25-
aliases_explicit.py:83:21 - error: Expected type expression but received "dict[str, str]" (reportGeneralTypeIssues)
25+
aliases_explicit.py:83:21 - error: Expected type expression but received "dict[str, Unknown]" (reportGeneralTypeIssues)
26+
aliases_explicit.py:83:28 - error: "b" is not defined (reportUndefinedVariable)
2627
aliases_explicit.py:84:21 - error: Invalid expression form for type alias definition (reportInvalidTypeForm)
2728
aliases_explicit.py:84:21 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
2829
aliases_explicit.py:85:21 - error: Invalid expression form for type alias definition (reportInvalidTypeForm)

conformance/results/pyright/aliases_recursive.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ aliases_recursive.py:20:16 - error: Expression of type "list[int | complex]" is
1818
    "complex" is incompatible with "float"
1919
    "complex" is incompatible with "list[Json]"
2020
    "complex" is incompatible with "dict[str, Json]" (reportAssignmentType)
21-
aliases_recursive.py:38:22 - error: Expression of type "tuple[Literal[1], tuple[Literal['1'], Literal[1]], tuple[Literal[1], tuple[Literal[1], list[int]]]]" is incompatible with declared type "RecursiveTuple"
22-
  Type "tuple[Literal[1], tuple[Literal['1'], Literal[1]], tuple[Literal[1], tuple[Literal[1], list[int]]]]" is incompatible with type "RecursiveTuple"
23-
    "tuple[Literal[1], tuple[Literal['1'], Literal[1]], tuple[Literal[1], tuple[Literal[1], list[int]]]]" is incompatible with "str"
24-
    "tuple[Literal[1], tuple[Literal['1'], Literal[1]], tuple[Literal[1], tuple[Literal[1], list[int]]]]" is incompatible with "int"
25-
    "tuple[Literal[1], tuple[Literal['1'], Literal[1]], tuple[Literal[1], tuple[Literal[1], list[int]]]]" is incompatible with "tuple[RecursiveTuple, ...]"
21+
aliases_recursive.py:38:22 - error: Expression of type "tuple[Literal[1], tuple[str, int], tuple[int, tuple[int, list[int]]]]" is incompatible with declared type "RecursiveTuple"
22+
  Type "tuple[Literal[1], tuple[str, int], tuple[int, tuple[int, list[int]]]]" is incompatible with type "RecursiveTuple"
23+
    "tuple[Literal[1], tuple[str, int], tuple[int, tuple[int, list[int]]]]" is incompatible with "str"
24+
    "tuple[Literal[1], tuple[str, int], tuple[int, tuple[int, list[int]]]]" is incompatible with "int"
25+
    "tuple[Literal[1], tuple[str, int], tuple[int, tuple[int, list[int]]]]" is incompatible with "tuple[RecursiveTuple, ...]"
2626
      Tuple entry 1 is incorrect type (reportAssignmentType)
2727
aliases_recursive.py:39:22 - error: Expression of type "tuple[Literal[1], list[int]]" is incompatible with declared type "RecursiveTuple"
2828
  Type "tuple[Literal[1], list[int]]" is incompatible with type "RecursiveTuple"

conformance/results/pyright/aliases_type_statement.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ aliases_type_statement.py:40:22 - error: List expression not allowed in type ann
2424
aliases_type_statement.py:40:22 - error: Expected type expression but received "list[type[int]]" (reportGeneralTypeIssues)
2525
aliases_type_statement.py:41:22 - error: Dictionary expression not allowed in type annotation
2626
  Use Dict[T1, T2] to indicate a dictionary type (reportInvalidTypeForm)
27-
aliases_type_statement.py:41:22 - error: Expected type expression but received "dict[str, str]" (reportGeneralTypeIssues)
27+
aliases_type_statement.py:41:22 - error: Expected type expression but received "dict[str, Unknown]" (reportGeneralTypeIssues)
28+
aliases_type_statement.py:41:29 - error: "b" is not defined (reportUndefinedVariable)
2829
aliases_type_statement.py:42:22 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
2930
aliases_type_statement.py:43:22 - error: List expression not allowed in type annotation
3031
  Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)

conformance/results/pyright/aliases_typealiastype.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ aliases_typealiastype.py:52:40 - error: Call expression not allowed in type expr
1515
aliases_typealiastype.py:53:40 - error: Expected type expression but received "list[Unknown]" (reportGeneralTypeIssues)
1616
aliases_typealiastype.py:54:42 - error: Expected type expression but received "tuple[tuple[type[int], type[str]]]" (reportGeneralTypeIssues)
1717
aliases_typealiastype.py:55:42 - error: Expected type expression but received "list[type[int]]" (reportGeneralTypeIssues)
18-
aliases_typealiastype.py:56:42 - error: Expected type expression but received "dict[str, str]" (reportGeneralTypeIssues)
18+
aliases_typealiastype.py:56:42 - error: Expected type expression but received "dict[str, Unknown]" (reportGeneralTypeIssues)
19+
aliases_typealiastype.py:56:49 - error: "b" is not defined (reportUndefinedVariable)
1920
aliases_typealiastype.py:57:42 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
2021
aliases_typealiastype.py:58:42 - error: List expression not allowed in type annotation
2122
  Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)

conformance/results/pyright/callables_kwargs.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ callables_kwargs.py:101:19 - error: Expression of type "(**kwargs: **TD2) -> Non
1919
      "int" is incompatible with "str" (reportAssignmentType)
2020
callables_kwargs.py:102:19 - error: Expression of type "(**kwargs: **TD2) -> None" is incompatible with declared type "TDProtocol4"
2121
  Type "(**kwargs: **TD2) -> None" is incompatible with type "(*, v1: int) -> None"
22-
    Keyword parameter "v3" is missing in destination (reportAssignmentType)
22+
    Extra parameter "v3" (reportAssignmentType)
2323
callables_kwargs.py:103:19 - error: Expression of type "(**kwargs: **TD2) -> None" is incompatible with declared type "TDProtocol5"
2424
  Type "(**kwargs: **TD2) -> None" is incompatible with type "(v1: int, v3: str) -> None"
2525
    Function accepts too many positional parameters; expected 0 but received 2
26-
      Keyword parameter "v1" is missing in destination
27-
      Keyword parameter "v3" is missing in destination (reportAssignmentType)
26+
      Extra parameter "v1"
27+
      Extra parameter "v3" (reportAssignmentType)
2828
callables_kwargs.py:111:30 - error: Typed dictionary overlaps with keyword parameter: v1 (reportGeneralTypeIssues)
2929
callables_kwargs.py:122:21 - error: Expected TypedDict type argument for Unpack (reportGeneralTypeIssues)
3030
"""

conformance/results/pyright/callables_protocol.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ conformant = "Pass"
22
output = """
33
callables_protocol.py:35:7 - error: Expression of type "(*vals: bytes, max_items: int | None) -> list[bytes]" is incompatible with declared type "Proto1"
44
  Type "(*vals: bytes, max_items: int | None) -> list[bytes]" is incompatible with type "(*vals: bytes, max_len: int | None = None) -> list[bytes]"
5-
    Keyword parameter "max_items" is missing in destination
6-
    Keyword parameter "max_len" is missing in source (reportAssignmentType)
5+
    Extra parameter "max_items"
6+
    Missing keyword parameter "max_len" (reportAssignmentType)
77
callables_protocol.py:36:7 - error: Expression of type "(*vals: bytes) -> list[bytes]" is incompatible with declared type "Proto1"
88
  Type "(*vals: bytes) -> list[bytes]" is incompatible with type "(*vals: bytes, max_len: int | None = None) -> list[bytes]"
9-
    Keyword parameter "max_len" is missing in source (reportAssignmentType)
9+
    Missing keyword parameter "max_len" (reportAssignmentType)
1010
callables_protocol.py:37:7 - error: Expression of type "(*vals: bytes, max_len: str | None) -> list[bytes]" is incompatible with declared type "Proto1"
1111
  Type "(*vals: bytes, max_len: str | None) -> list[bytes]" is incompatible with type "(*vals: bytes, max_len: int | None = None) -> list[bytes]"
1212
    Keyword parameter "max_len" of type "int | None" is incompatible with type "str | None"
@@ -46,12 +46,12 @@ callables_protocol.py:197:16 - error: Cannot access attribute "other_attribute2"
4646
  Attribute "other_attribute2" is unknown (reportAttributeAccessIssue)
4747
callables_protocol.py:238:8 - error: Expression of type "(x: int, y: str, /) -> Any" is incompatible with declared type "Proto11"
4848
  Type "(x: int, y: str, /) -> Any" is incompatible with type "(x: int, /, y: str) -> Any"
49-
    Keyword parameter "y" is missing in source
49+
    Missing keyword parameter "y"
5050
      Position-only parameter mismatch; parameter "y" is not position-only
5151
      Position-only parameter mismatch; expected 2 but received 1 (reportAssignmentType)
5252
callables_protocol.py:260:8 - error: Expression of type "(*args: Any, kwarg0: Any) -> None" is incompatible with declared type "Proto12"
5353
  Type "(*args: Any, kwarg0: Any) -> None" is incompatible with type "(*args: Any, kwarg0: Any, kwarg1: Any) -> None"
54-
    Keyword parameter "kwarg1" is missing in source (reportAssignmentType)
54+
    Missing keyword parameter "kwarg1" (reportAssignmentType)
5555
callables_protocol.py:284:27 - error: Expression of type "(path: str) -> str" is incompatible with declared type "Proto13_Default"
5656
  Type "(path: str) -> str" is incompatible with type "(path: str = ...) -> str"
5757
    Parameter "path" is missing default argument (reportAssignmentType)

conformance/results/pyright/callables_subtyping.toml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ callables_subtyping.py:51:21 - error: Expression of type "PosOnly2" is incompati
1414
  "PosOnly2" is incompatible with protocol "Standard2"
1515
    "__call__" is an incompatible type
1616
      Type "(b: int, a: int, /) -> None" is incompatible with type "(a: int, b: int) -> None"
17-
        Keyword parameter "a" is missing in source
18-
        Keyword parameter "b" is missing in source
17+
        Missing keyword parameter "a"
18+
        Missing keyword parameter "b"
1919
          Position-only parameter mismatch; parameter "a" is not position-only
2020
          Position-only parameter mismatch; parameter "b" is not position-only
2121
          Position-only parameter mismatch; expected 2 but received 0 (reportAssignmentType)
@@ -24,22 +24,23 @@ callables_subtyping.py:52:21 - error: Expression of type "KwOnly2" is incompatib
2424
    "__call__" is an incompatible type
2525
      Type "(*, b: int, a: int) -> None" is incompatible with type "(a: int, b: int) -> None"
2626
        Function accepts too many positional parameters; expected 0 but received 2
27-
          Keyword parameter "b" is missing in destination
28-
          Keyword parameter "a" is missing in destination (reportAssignmentType)
27+
          Extra parameter "b"
28+
          Extra parameter "a" (reportAssignmentType)
2929
callables_subtyping.py:55:20 - error: Expression of type "KwOnly2" is incompatible with declared type "PosOnly2"
3030
  "KwOnly2" is incompatible with protocol "PosOnly2"
3131
    "__call__" is an incompatible type
3232
      Type "(*, b: int, a: int) -> None" is incompatible with type "(b: int, a: int, /) -> None"
3333
        Function accepts too many positional parameters; expected 0 but received 2
34-
          Keyword parameter "b" is missing in destination
35-
          Keyword parameter "a" is missing in destination (reportAssignmentType)
34+
          Extra parameter "b"
35+
          Extra parameter "a" (reportAssignmentType)
3636
callables_subtyping.py:58:19 - error: Expression of type "PosOnly2" is incompatible with declared type "KwOnly2"
3737
  "PosOnly2" is incompatible with protocol "KwOnly2"
3838
    "__call__" is an incompatible type
3939
      Type "(b: int, a: int, /) -> None" is incompatible with type "(*, b: int, a: int) -> None"
4040
        Position-only parameter mismatch; expected 2 but received 0
41-
        Keyword parameter "b" is missing in source
42-
        Keyword parameter "a" is missing in source (reportAssignmentType)
41+
        Function accepts too few positional parameters; expected 2 but received 0
42+
        Missing keyword parameter "b"
43+
        Missing keyword parameter "a" (reportAssignmentType)
4344
callables_subtyping.py:82:20 - error: Expression of type "NoArgs3" is incompatible with declared type "IntArgs3"
4445
  "NoArgs3" is incompatible with protocol "IntArgs3"
4546
    "__call__" is an incompatible type
@@ -96,14 +97,14 @@ callables_subtyping.py:125:22 - error: Expression of type "IntStrArgs4" is incom
9697
  "IntStrArgs4" is incompatible with protocol "Standard4"
9798
    "__call__" is an incompatible type
9899
      Type "(*args: int | str) -> None" is incompatible with type "(a: int, b: str) -> None"
99-
        Keyword parameter "a" is missing in source
100-
        Keyword parameter "b" is missing in source (reportAssignmentType)
100+
        Missing keyword parameter "a"
101+
        Missing keyword parameter "b" (reportAssignmentType)
101102
callables_subtyping.py:126:22 - error: Expression of type "StrArgs4" is incompatible with declared type "Standard4"
102103
  "StrArgs4" is incompatible with protocol "Standard4"
103104
    "__call__" is an incompatible type
104105
      Type "(a: int, /, *args: str) -> None" is incompatible with type "(a: int, b: str) -> None"
105-
        Keyword parameter "a" is missing in source
106-
        Keyword parameter "b" is missing in source
106+
        Missing keyword parameter "a"
107+
        Missing keyword parameter "b"
107108
          Position-only parameter mismatch; parameter "a" is not position-only
108109
          Position-only parameter mismatch; expected 1 but received 0 (reportAssignmentType)
109110
callables_subtyping.py:151:22 - error: Expression of type "NoKwargs5" is incompatible with declared type "IntKwargs5"
@@ -164,7 +165,7 @@ callables_subtyping.py:197:22 - error: Expression of type "StrKwargs6" is incomp
164165
    "__call__" is an incompatible type
165166
      Type "(*, a: int, **kwargs: str) -> None" is incompatible with type "(a: int, b: str) -> None"
166167
        Function accepts too many positional parameters; expected 0 but received 2
167-
          Keyword parameter "a" is missing in destination (reportAssignmentType)
168+
          Extra parameter "a" (reportAssignmentType)
168169
callables_subtyping.py:236:23 - error: Expression of type "NoDefaultArg8" is incompatible with declared type "DefaultArg8"
169170
  "NoDefaultArg8" is incompatible with protocol "DefaultArg8"
170171
    "__call__" is an incompatible type
@@ -183,7 +184,8 @@ callables_subtyping.py:240:25 - error: Expression of type "NoX8" is incompatible
183184
callables_subtyping.py:243:16 - error: Expression of type "NoDefaultArg8" is incompatible with declared type "NoX8"
184185
  "NoDefaultArg8" is incompatible with protocol "NoX8"
185186
    "__call__" is an incompatible type
186-
      Type "(x: int) -> None" is incompatible with type "() -> None" (reportAssignmentType)
187+
      Type "(x: int) -> None" is incompatible with type "() -> None"
188+
        Extra parameter "x" (reportAssignmentType)
187189
callables_subtyping.py:273:21 - error: Expression of type "Overloaded9" is incompatible with declared type "FloatArg9"
188190
  "Overloaded9" is incompatible with protocol "FloatArg9"
189191
    "__call__" is an incompatible type

conformance/results/pyright/generics_paramspec_semantics.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ generics_paramspec_semantics.py:46:17 - error: Argument of type "(y: int, x: str
1212
    Parameter name mismatch: "y" versus "x" (reportArgumentType)
1313
generics_paramspec_semantics.py:61:23 - error: Argument of type "(*, y: int) -> int" cannot be assigned to parameter "y" of type "(**P@func1) -> int" in function "func1"
1414
  Type "(*, y: int) -> int" is incompatible with type "(*, x: int) -> int"
15-
    Keyword parameter "y" is missing in destination
16-
    Keyword parameter "x" is missing in source (reportArgumentType)
15+
    Extra parameter "y"
16+
    Missing keyword parameter "x" (reportArgumentType)
1717
generics_paramspec_semantics.py:97:4 - error: Argument of type "Literal[1]" cannot be assigned to parameter of type "str"
1818
  "Literal[1]" is incompatible with "str" (reportArgumentType)
1919
generics_paramspec_semantics.py:107:4 - error: Argument of type "Literal[1]" cannot be assigned to parameter "args" of type "bool"

0 commit comments

Comments
 (0)