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
Copy file name to clipboardExpand all lines: conformance/results/pyre/callables_kwargs.toml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ callables_kwargs.py:102:0 Incompatible variable type [9]: v4 is declared to have
15
15
callables_kwargs.py:103:0 Incompatible variable type [9]: v5 is declared to have type `TDProtocol5` but is used as type `typing.Callable(func1)[[Keywords(Unpack[TD2])], None]`.
16
16
callables_kwargs.py:111:21 Duplicate parameter [65]: Duplicate parameter name `v1`.
17
17
callables_kwargs.py:122:12 Invalid type [31]: `Unpack` in kwargs may only be used with typed dictionaries. `Variable[T (bound to TD2)]` is not a typed dictionary.
18
+
callables_kwargs.py:130:0 Incompatible variable type [9]: v7 is declared to have type `TDProtocol6` but is used as type `typing.Callable(func7)[[KeywordOnly(v1, int), KeywordOnly(v3, str), KeywordOnly(v2, str, default)], None]`.
19
+
callables_kwargs.py:138:4 Missing argument [20]: Call `func7` expects argument `v2` to be a required typed dictionary key, as the corresponding parameter has no default.
Copy file name to clipboardExpand all lines: conformance/results/pyright/annotations_forward_refs.toml
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,19 +6,19 @@ annotations_forward_refs.py:24:7 - error: Union syntax cannot be used with strin
6
6
annotations_forward_refs.py:25:13 - error: Union syntax cannot be used with string operand; use quotes around entire expression (reportGeneralTypeIssues)
7
7
annotations_forward_refs.py:41:10 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
8
8
annotations_forward_refs.py:42:10 - error: List expression not allowed in type expression
9
-
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
9
+
Use list[T] to indicate a list type or T1 | T2 to indicate a union type (reportInvalidTypeForm)
10
10
annotations_forward_refs.py:42:10 - error: Expected class but received "list[Unknown]" (reportGeneralTypeIssues)
11
11
annotations_forward_refs.py:43:10 - error: Tuple expression not allowed in type expression
12
-
Use tuple[T1, ..., Tn] to indicate a tuple type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
12
+
Use tuple[T1, ..., Tn] to indicate a tuple type or T1 | T2 to indicate a union type (reportInvalidTypeForm)
13
13
annotations_forward_refs.py:44:10 - error: List expression not allowed in type expression
14
-
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
14
+
Use list[T] to indicate a list type or T1 | T2 to indicate a union type (reportInvalidTypeForm)
15
15
annotations_forward_refs.py:44:10 - error: Expected class but received "list[type[int]]" (reportGeneralTypeIssues)
16
16
annotations_forward_refs.py:45:10 - error: Dictionary expression not allowed in type expression
17
-
Use Dict[T1, T2] to indicate a dictionary type (reportInvalidTypeForm)
17
+
Use dict[T1, T2] to indicate a dictionary type (reportInvalidTypeForm)
18
18
annotations_forward_refs.py:45:10 - error: Expected class but received "dict[Unknown, Unknown]" (reportGeneralTypeIssues)
19
19
annotations_forward_refs.py:46:10 - error: Call expression not allowed in type expression (reportInvalidTypeForm)
20
20
annotations_forward_refs.py:47:10 - error: List expression not allowed in type expression
21
-
Use List[T] to indicate a list type or Union[T1, T2] to indicate a union type (reportInvalidTypeForm)
21
+
Use list[T] to indicate a list type or T1 | T2 to indicate a union type (reportInvalidTypeForm)
22
22
annotations_forward_refs.py:47:10 - error: Expected class but received "list[type[int]]" (reportGeneralTypeIssues)
23
23
annotations_forward_refs.py:47:16 - error: Expected class but received "Literal[0]" (reportGeneralTypeIssues)
24
24
annotations_forward_refs.py:48:10 - error: Ternary expression not allowed in type expression (reportInvalidTypeForm)
0 commit comments