You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated conformance results for pyright 1.1.371. There were no substa… (#1794)
Updated conformance results for pyright 1.1.371. There were no substantive conformance results changes, but a bunch of diagnostic messages changed or were augmented.
Copy file name to clipboardExpand all lines: conformance/results/pyright/aliases_type_statement.toml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,38 +2,38 @@ conformant = "Pass"
2
2
output = """
3
3
aliases_type_statement.py:17:12 - error: Cannot access attribute "bit_count" for class "TypeAliasType"
4
4
Attribute "bit_count" is unknown (reportAttributeAccessIssue)
5
-
aliases_type_statement.py:19:1 - error: Object of type "TypeAliasType" is not callable (reportCallIssue)
5
+
aliases_type_statement.py:19:1 - error: Object of type "TypeAliasType" is not callable
6
+
Attribute "__call__" is unknown (reportCallIssue)
6
7
aliases_type_statement.py:23:18 - error: Cannot access attribute "other_attrib" for class "TypeAliasType"
7
8
Attribute "other_attrib" is unknown (reportAttributeAccessIssue)
8
9
aliases_type_statement.py:26:18 - error: A type alias defined in a "type" statement cannot be used as a base class
9
-
aliases_type_statement.py:31:22 - error: Argument of type "GoodAlias1" cannot be assigned to parameter "class_or_tuple" of type "_ClassInfo" in function "isinstance"
10
+
aliases_type_statement.py:31:22 - error: Argument of type "TypeAliasType" cannot be assigned to parameter "class_or_tuple" of type "_ClassInfo" in function "isinstance"
10
11
Type "TypeAliasType" is incompatible with type "_ClassInfo"
11
12
"TypeAliasType" is incompatible with "type"
12
13
"TypeAliasType" is incompatible with "UnionType"
13
14
"TypeAliasType" is incompatible with "tuple[_ClassInfo, ...]" (reportArgumentType)
14
-
aliases_type_statement.py:31:22 - error: Second argument to "isinstance" must be a class or tuple of classes
15
-
Type alias created with "type" statement cannot be used with instance and class checks (reportArgumentType)
16
15
aliases_type_statement.py:37:22 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
17
16
aliases_type_statement.py:38:22 - error: List expression not allowed in type annotation
18
17
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
19
-
aliases_type_statement.py:38:22 - error: Expected type expression but received "list[Unknown]" (reportGeneralTypeIssues)
18
+
aliases_type_statement.py:38:22 - error: Expected class but received "list[Unknown]" (reportGeneralTypeIssues)
20
19
aliases_type_statement.py:39:22 - error: Tuple expression not allowed in type annotation
21
20
Use tuple[T1, ..., Tn] to indicate a tuple type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
22
21
aliases_type_statement.py:40:22 - error: List expression not allowed in type annotation
23
22
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
24
-
aliases_type_statement.py:40:22 - error: Expected type expression but received "list[type[int]]" (reportGeneralTypeIssues)
23
+
aliases_type_statement.py:40:22 - error: Expected class but received "list[type[int]]" (reportGeneralTypeIssues)
25
24
aliases_type_statement.py:41:22 - error: Dictionary expression not allowed in type annotation
26
25
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, Unknown]" (reportGeneralTypeIssues)
26
+
aliases_type_statement.py:41:22 - error: Expected class but received "dict[str, Unknown]" (reportGeneralTypeIssues)
28
27
aliases_type_statement.py:41:29 - error: "b" is not defined (reportUndefinedVariable)
29
28
aliases_type_statement.py:42:22 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
30
29
aliases_type_statement.py:43:22 - error: List expression not allowed in type annotation
31
30
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
32
-
aliases_type_statement.py:43:22 - error: Expected type expression but received "list[type[int]]" (reportGeneralTypeIssues)
31
+
aliases_type_statement.py:43:22 - error: Expected class but received "list[type[int]]" (reportGeneralTypeIssues)
32
+
aliases_type_statement.py:43:28 - error: Expected class but received "Literal[0]" (reportGeneralTypeIssues)
33
33
aliases_type_statement.py:44:22 - error: Ternary expression not allowed in type annotation (reportInvalidTypeForm)
34
34
aliases_type_statement.py:45:22 - error: Variable not allowed in type expression (reportInvalidTypeForm)
35
-
aliases_type_statement.py:46:23 - error: Expected type expression but received "Literal[True]" (reportGeneralTypeIssues)
36
-
aliases_type_statement.py:47:23 - error: Expected type expression but received "Literal[1]" (reportGeneralTypeIssues)
35
+
aliases_type_statement.py:46:23 - error: Expected class but received "Literal[True]" (reportGeneralTypeIssues)
36
+
aliases_type_statement.py:47:23 - error: Expected class but received "Literal[1]" (reportGeneralTypeIssues)
37
37
aliases_type_statement.py:48:23 - error: Binary operator not allowed in type annotation (reportInvalidTypeForm)
38
38
aliases_type_statement.py:49:23 - error: Type annotations cannot use format string literals (f-strings) (reportGeneralTypeIssues)
39
39
aliases_type_statement.py:52:10 - error: Type alias declaration "BadTypeAlias14" is obscured by a declaration of the same name (reportRedeclaration)
0 commit comments