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
{{ message }}
Repository navigation
Commit 74d57b3
Browse filesBrowse the repository at this point in the historyBrowse files
literals_parameterizations.py:60: error: Literal[...] must have at least one parameter [valid-type]
20
-
literals_parameterizations.py:61: error: Parameter 1 of Literal[...] is invalid [valid-type]
21
-
literals_parameterizations.py:65: error: Incompatible types in assignment (expression has type "Literal[Color.RED]", variable has type "Literal['Color.RED']") [assignment]
15
+
literals_parameterizations.py:50: error: Parameter 1 of Literal[...] cannot be of type "float" [valid-type]
16
+
literals_parameterizations.py:51: error: Parameter 1 of Literal[...] cannot be of type "Any" [valid-type]
17
+
literals_parameterizations.py:52: error: Parameter 1 of Literal[...] is invalid [valid-type]
literals_parameterizations.py:59: error: Literal[...] must have at least one parameter [valid-type]
20
+
literals_parameterizations.py:60: error: Parameter 1 of Literal[...] is invalid [valid-type]
21
+
literals_parameterizations.py:64: error: Incompatible types in assignment (expression has type "Literal[Color.RED]", variable has type "Literal['Color.RED']") [assignment]
Copy file name to clipboardExpand all lines: conformance/results/pyright/literals_parameterizations.toml
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,18 @@ literals_parameterizations.py:45:15 - error: Unary operator not allowed in type
12
12
literals_parameterizations.py:45:15 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
13
13
literals_parameterizations.py:46:15 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
14
14
literals_parameterizations.py:47:15 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
15
+
literals_parameterizations.py:48:15 - error: Variable not allowed in type expression (reportInvalidTypeForm)
15
16
literals_parameterizations.py:48:15 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
16
-
literals_parameterizations.py:49:15 - error: Variable not allowed in type expression (reportInvalidTypeForm)
17
17
literals_parameterizations.py:49:15 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
18
18
literals_parameterizations.py:50:16 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
19
19
literals_parameterizations.py:51:16 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
20
+
literals_parameterizations.py:52:16 - error: "..." is not allowed in this context (reportInvalidTypeForm)
20
21
literals_parameterizations.py:52:16 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
21
-
literals_parameterizations.py:53:16 - error: "..." is not allowed in this context (reportInvalidTypeForm)
22
-
literals_parameterizations.py:53:16 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
23
-
literals_parameterizations.py:56:28 - error: Binary operator not allowed in type expression (reportInvalidTypeForm)
24
-
literals_parameterizations.py:56:28 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
25
-
literals_parameterizations.py:60:4 - error: "Literal" cannot be used in this context without a type argument (reportInvalidTypeForm)
26
-
literals_parameterizations.py:61:12 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
27
-
literals_parameterizations.py:65:32 - error: Type "Literal[Color.RED]" is not assignable to declared type "Literal['Color.RED']"
22
+
literals_parameterizations.py:55:28 - error: Binary operator not allowed in type expression (reportInvalidTypeForm)
23
+
literals_parameterizations.py:55:28 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
24
+
literals_parameterizations.py:59:4 - error: "Literal" cannot be used in this context without a type argument (reportInvalidTypeForm)
25
+
literals_parameterizations.py:60:12 - error: Type arguments for "Literal" must be None, a literal value (int, bool, str, or bytes), or an enum value (reportInvalidTypeForm)
26
+
literals_parameterizations.py:64:32 - error: Type "Literal[Color.RED]" is not assignable to declared type "Literal['Color.RED']"
28
27
"Literal[Color.RED]" is not assignable to "Literal['Color.RED']" (reportAssignmentType)
Copy file name to clipboardExpand all lines: conformance/results/ty/literals_parameterizations.toml
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,8 @@ literals_parameterizations.py:49:15: error[invalid-type-form] Type arguments for
14
14
literals_parameterizations.py:50:16: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
15
15
literals_parameterizations.py:51:16: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
16
16
literals_parameterizations.py:52:16: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
17
-
literals_parameterizations.py:53:16: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
18
-
literals_parameterizations.py:56:28: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
19
-
literals_parameterizations.py:60:4: error[invalid-type-form] `typing.Literal` requires at least one argument when used in a type expression
20
-
literals_parameterizations.py:61:12: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
21
-
literals_parameterizations.py:65:32: error[invalid-assignment] Object of type `Literal[Color.RED]` is not assignable to `Literal["Color.RED"]`
17
+
literals_parameterizations.py:55:28: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
18
+
literals_parameterizations.py:59:4: error[invalid-type-form] `typing.Literal` requires at least one argument when used in a type expression
19
+
literals_parameterizations.py:60:12: error[invalid-type-form] Type arguments for `Literal` must be `None`, a literal value (int, bool, str, or bytes), or an enum member
20
+
literals_parameterizations.py:64:32: error[invalid-assignment] Object of type `Literal[Color.RED]` is not assignable to `Literal["Color.RED"]`
literals_parameterizations.py:60: error: Literal[...] must have at least one parameter [valid-type]
22
-
literals_parameterizations.py:61: error: Parameter 1 of Literal[...] is invalid [valid-type]
23
-
literals_parameterizations.py:65: error: Incompatible types in assignment (expression has type "Literal[Color.RED]", variable has type "Literal['Color.RED']") [assignment]
13
+
literals_parameterizations.py:49: error: Type variable "literals_parameterizations.T" is unbound [misc]
14
+
literals_parameterizations.py:49: note: (Hint: Use "Generic[T]" or "Protocol[T]" base class to bind "T" inside a class)
15
+
literals_parameterizations.py:49: note: (Hint: Use "T" in function signature to bind "T" inside a function)
16
+
literals_parameterizations.py:50: error: Parameter 1 of Literal[...] cannot be of type "float" [valid-type]
17
+
literals_parameterizations.py:51: error: Parameter 1 of Literal[...] cannot be of type "Any" [valid-type]
literals_parameterizations.py:59: error: Literal[...] must have at least one parameter [valid-type]
21
+
literals_parameterizations.py:60: error: Parameter 1 of Literal[...] is invalid [valid-type]
22
+
literals_parameterizations.py:64: error: Incompatible types in assignment (expression has type "Literal[Color.RED]", variable has type "Literal['Color.RED']") [assignment]
0 commit comments