Skip to content

Commit 46f693a

Browse files
authored
Update conformance results (#2379)
Update conformance results.
1 parent e6a6061 commit 46f693a

57 files changed

Lines changed: 275 additions & 458 deletions

File tree

Some content is hidden

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

‎conformance/pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies = [
77
"markdown",
88
"mypy",
99
"pycroscope",
10-
"pyrefly==1.3.0.dev1",
10+
"pyrefly",
1111
"pyright",
1212
"tomlkit",
1313
"ty",

‎conformance/results/mypy/callables_kwargs.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ output = """
66
callables_kwargs.py:46: error: Missing named argument "v1" for "func1" [call-arg]
77
callables_kwargs.py:46: error: Missing named argument "v3" for "func1" [call-arg]
88
callables_kwargs.py:51: error: Unexpected keyword argument "v4" for "func1" [call-arg]
9-
callables_kwargs.py:52: error: Too many positional arguments for "func1" [misc]
9+
callables_kwargs.py:52: error: Too many positional arguments for "func1" [call-arg]
1010
callables_kwargs.py:58: error: Argument 1 to "func1" has incompatible type "**dict[str, str]"; expected "int" [arg-type]
1111
callables_kwargs.py:61: error: Argument 1 to "func1" has incompatible type "**dict[str, object]"; expected "int" [arg-type]
1212
callables_kwargs.py:61: error: Argument 1 to "func1" has incompatible type "**dict[str, object]"; expected "str" [arg-type]

‎conformance/results/mypy/constructors_callable.toml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ errors_diff = """
99
Line 129: Expected 1 errors
1010
Line 146: Expected 1 errors
1111
Line 74: Unexpected errors ['constructors_callable.py:74: error: Incompatible return type for "__new__" (returns "int", but must return a subtype of "Class4") [misc]']
12-
Line 80: Unexpected errors ['constructors_callable.py:80: error: Expression is of type "Class4", not "int" [assert-type]']
1312
Line 102: Unexpected errors ['constructors_callable.py:102: error: Expression is of type "Class5", not "Never" [assert-type]']
1413
Line 107: Unexpected errors ['constructors_callable.py:107: error: Expression is of type "Class5", not "Never" [assert-type]']
1514
Line 118: Unexpected errors ['constructors_callable.py:118: error: Incompatible return type for "__new__" (returns "Class6Proxy", but must return a subtype of "Class6") [misc]']
@@ -27,8 +26,7 @@ constructors_callable.py:66: error: Too few arguments [call-arg]
2726
constructors_callable.py:67: error: Unexpected keyword argument "y" [call-arg]
2827
constructors_callable.py:68: error: Too many arguments [call-arg]
2928
constructors_callable.py:74: error: Incompatible return type for "__new__" (returns "int", but must return a subtype of "Class4") [misc]
30-
constructors_callable.py:79: note: Revealed type is "def (x: int) -> constructors_callable.Class4"
31-
constructors_callable.py:80: error: Expression is of type "Class4", not "int" [assert-type]
29+
constructors_callable.py:79: note: Revealed type is "def (x: int) -> int"
3230
constructors_callable.py:81: error: Too few arguments [call-arg]
3331
constructors_callable.py:82: error: Unexpected keyword argument "y" [call-arg]
3432
constructors_callable.py:99: note: Revealed type is "def (*args: Any, **kwargs: Any) -> constructors_callable.Class5"

‎conformance/results/mypy/dataclasses_kwonly.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
conformant = "Pass"
22
output = """
3-
dataclasses_kwonly.py:23: error: Too many positional arguments for "DC1" [misc]
4-
dataclasses_kwonly.py:38: error: Too many positional arguments for "DC2" [misc]
5-
dataclasses_kwonly.py:53: error: Too many positional arguments for "DC3" [misc]
3+
dataclasses_kwonly.py:23: error: Too many positional arguments for "DC1" [call-arg]
4+
dataclasses_kwonly.py:38: error: Too many positional arguments for "DC2" [call-arg]
5+
dataclasses_kwonly.py:53: error: Too many positional arguments for "DC3" [call-arg]
66
"""
77
conformance_automated = "Pass"
88
errors_diff = """

‎conformance/results/mypy/dataclasses_transform_class.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ conformant = "Pass"
22
output = """
33
dataclasses_transform_class.py:51: error: Non-frozen dataclass cannot inherit from a frozen dataclass [misc]
44
dataclasses_transform_class.py:63: error: Property "id" defined in "Customer1" is read-only [misc]
5-
dataclasses_transform_class.py:66: error: Too many positional arguments for "Customer1" [misc]
5+
dataclasses_transform_class.py:66: error: Too many positional arguments for "Customer1" [call-arg]
66
dataclasses_transform_class.py:72: error: Unsupported left operand type for < ("Customer1") [operator]
7-
dataclasses_transform_class.py:82: error: Too many positional arguments for "Customer2" [misc]
7+
dataclasses_transform_class.py:82: error: Too many positional arguments for "Customer2" [call-arg]
88
dataclasses_transform_class.py:122: error: Property "id" defined in "Customer3" is read-only [misc]
99
"""
1010
conformance_automated = "Pass"

‎conformance/results/mypy/dataclasses_transform_field.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Does not properly handle field constructor that has default value for `kw_only`
44
"""
55
output = """
66
dataclasses_transform_field.py:64: error: Unexpected keyword argument "id" for "CustomerModel1" [call-arg]
7-
dataclasses_transform_field.py:75: error: Too many positional arguments for "CustomerModel2" [misc]
7+
dataclasses_transform_field.py:75: error: Too many positional arguments for "CustomerModel2" [call-arg]
88
dataclasses_transform_field.py:75: error: Missing named argument "name" for "CustomerModel2" [call-arg]
99
dataclasses_transform_field.py:77: error: Missing named argument "id" for "CustomerModel2" [call-arg]
1010
"""

‎conformance/results/mypy/dataclasses_transform_func.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Does not handle `kw_only=False` override when `kw_only_default=True`.
44
Does not report error when `order=False` and comparison operators are used.
55
"""
66
output = """
7-
dataclasses_transform_func.py:52: error: Too many positional arguments for "Customer1" [misc]
7+
dataclasses_transform_func.py:52: error: Too many positional arguments for "Customer1" [call-arg]
88
dataclasses_transform_func.py:56: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment]
99
dataclasses_transform_func.py:64: error: Unexpected keyword argument "salary" for "Customer1" [call-arg]
10-
dataclasses_transform_func.py:70: error: Too many positional arguments for "Customer2" [misc]
10+
dataclasses_transform_func.py:70: error: Too many positional arguments for "Customer2" [call-arg]
1111
dataclasses_transform_func.py:89: error: Non-frozen dataclass cannot inherit from a frozen dataclass [misc]
1212
dataclasses_transform_func.py:96: error: Property "id" defined in "Customer3" is read-only [misc]
1313
"""
1414
conformance_automated = "Fail"
1515
errors_diff = """
1616
Line 60: Expected 1 errors
17-
Line 52: Unexpected errors ['dataclasses_transform_func.py:52: error: Too many positional arguments for "Customer1" [misc]']
17+
Line 52: Unexpected errors ['dataclasses_transform_func.py:52: error: Too many positional arguments for "Customer1" [call-arg]']
1818
"""

‎conformance/results/mypy/dataclasses_transform_meta.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ conformant = "Pass"
22
output = """
33
dataclasses_transform_meta.py:51: error: Non-frozen dataclass cannot inherit from a frozen dataclass [misc]
44
dataclasses_transform_meta.py:63: error: Property "id" defined in "Customer1" is read-only [misc]
5-
dataclasses_transform_meta.py:66: error: Too many positional arguments for "Customer1" [misc]
5+
dataclasses_transform_meta.py:66: error: Too many positional arguments for "Customer1" [call-arg]
66
dataclasses_transform_meta.py:73: error: Unsupported left operand type for < ("Customer1") [operator]
7-
dataclasses_transform_meta.py:83: error: Too many positional arguments for "Customer2" [misc]
7+
dataclasses_transform_meta.py:83: error: Too many positional arguments for "Customer2" [call-arg]
88
dataclasses_transform_meta.py:103: error: Property "id" defined in "Customer3" is read-only [misc]
99
"""
1010
conformance_automated = "Pass"

‎conformance/results/mypy/directives_type_ignore.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ notes = """
33
Does not honor `# type: ignore` comment if comment includes additional text.
44
"""
55
output = """
6-
directives_type_ignore.py:11: error: Invalid "type: ignore" comment [syntax]
76
directives_type_ignore.py:11: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
7+
directives_type_ignore.py:11: error: Invalid "type: ignore" comment [syntax]
88
directives_type_ignore.py:16: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]
99
directives_type_ignore.py:16: note: Error code "assignment" not covered by "type: ignore[an-empty-str-is-not-an-int]" comment
1010
"""
1111
conformance_automated = "Fail"
1212
errors_diff = """
13-
Line 11: Unexpected errors ['directives_type_ignore.py:11: error: Invalid "type: ignore" comment [syntax]', 'directives_type_ignore.py:11: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]']
13+
Line 11: Unexpected errors ['directives_type_ignore.py:11: error: Incompatible types in assignment (expression has type "str", variable has type "int") [assignment]', 'directives_type_ignore.py:11: error: Invalid "type: ignore" comment [syntax]']
1414
"""

‎conformance/results/mypy/generics_defaults.toml‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@ Does not fully support defaults on `TypeVarTuple` and `ParamSpec`.
66
output = """
77
generics_defaults.py:24: error: "T" cannot appear after "DefaultStrT" in type parameter list because it has no default type [misc]
88
generics_defaults.py:66: error: "AllTheDefaults" expects between 2 and 5 type arguments, but 1 given [type-arg]
9-
generics_defaults.py:139: error: Expression is of type "tuple[*tuple[str, int], ...]", not "tuple[str, int]" [assert-type]
109
generics_defaults.py:152: error: TypeVar default must be a subtype of the bound type [misc]
1110
generics_defaults.py:159: error: TypeVar default must be one of the constraint types [misc]
1211
generics_defaults.py:177: error: Expression is of type "int", not "Any" [assert-type]
12+
generics_defaults.py:188: error: A type variable with default cannot follow TypeVarTuple [type-var]
1313
generics_defaults.py:203: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [valid-type]
1414
generics_defaults.py:204: error: Expression is of type "tuple[Any, ...]", not "tuple[int, str]" [assert-type]
1515
generics_defaults.py:205: error: Expression is of type "def (*Any, **Any) -> None", not "Callable[[float, bool], None]" [assert-type]
1616
"""
1717
conformance_automated = "Fail"
1818
errors_diff = """
19-
Line 188: Expected 1 errors
20-
Line 139: Unexpected errors ['generics_defaults.py:139: error: Expression is of type "tuple[*tuple[str, int], ...]", not "tuple[str, int]" [assert-type]']
2119
Line 203: Unexpected errors ['generics_defaults.py:203: error: Can only replace ParamSpec with a parameter types list or another ParamSpec, got "str" [valid-type]']
2220
Line 204: Unexpected errors ['generics_defaults.py:204: error: Expression is of type "tuple[Any, ...]", not "tuple[int, str]" [assert-type]']
2321
Line 205: Unexpected errors ['generics_defaults.py:205: error: Expression is of type "def (*Any, **Any) -> None", not "Callable[[float, bool], None]" [assert-type]']

0 commit comments

Comments
 (0)