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
typeddicts_extra_items.py:111:50 - error: "Required" is not allowed in this context (reportInvalidTypeForm)
22
-
typeddicts_extra_items.py:114:57 - error: "NotRequired" is not allowed in this context (reportInvalidTypeForm)
23
-
typeddicts_extra_items.py:125:9 - error: Could not delete item in TypedDict
22
+
typeddicts_extra_items.py:109:7 - error: Base class "ExtraItemsBase" is a TypedDict that limits the type of extra items to type "int"
23
+
Cannot add item "extra_items" with type "Never" (reportIncompatibleVariableOverride)
24
+
typeddicts_extra_items.py:114:50 - error: "Required" is not allowed in this context (reportInvalidTypeForm)
25
+
typeddicts_extra_items.py:117:57 - error: "NotRequired" is not allowed in this context (reportInvalidTypeForm)
26
+
typeddicts_extra_items.py:128:9 - error: Could not delete item in TypedDict
24
27
"name" is a required key and cannot be deleted (reportGeneralTypeIssues)
25
-
typeddicts_extra_items.py:140:48 - error: No parameter named "year" (reportCallIssue)
26
-
typeddicts_extra_items.py:171:7 - error: Base class "Parent" is a TypedDict that limits the type of extra items to type "int | None"
28
+
typeddicts_extra_items.py:143:48 - error: No parameter named "year" (reportCallIssue)
29
+
typeddicts_extra_items.py:174:7 - error: Base class "Parent" is a TypedDict that limits the type of extra items to type "int | None"
27
30
Cannot add item "extra_items" with type "int" (reportIncompatibleVariableOverride)
28
-
typeddicts_extra_items.py:181:7 - error: Base class "MovieBase2" is a TypedDict that limits the type of extra items to type "int | None"
29
-
Cannot add item "year" because it must be NotRequired (reportIncompatibleVariableOverride)
30
31
typeddicts_extra_items.py:184:7 - error: Base class "MovieBase2" is a TypedDict that limits the type of extra items to type "int | None"
32
+
Cannot add item "year" because it must be NotRequired (reportIncompatibleVariableOverride)
33
+
typeddicts_extra_items.py:187:7 - error: Base class "MovieBase2" is a TypedDict that limits the type of extra items to type "int | None"
31
34
Cannot add item "year" with type "int" (reportIncompatibleVariableOverride)
32
-
typeddicts_extra_items.py:206:22 - error: Type "MovieDetails" is not assignable to declared type "MovieBase2"
35
+
typeddicts_extra_items.py:193:7 - error: Base class "MovieBase" is a TypedDict that limits the type of extra items to type "int | None"
36
+
Cannot add item "director" with type "str" (reportIncompatibleVariableOverride)
37
+
typeddicts_extra_items.py:212:22 - error: Type "MovieDetails" is not assignable to declared type "MovieBase2"
33
38
Type of "year" is incompatible with type of "extra_items" in "MovieBase2"
34
39
Type "int" is not assignable to type "int | None"
35
40
"int" is not assignable to "None" (reportAssignmentType)
36
-
typeddicts_extra_items.py:213:22 - error: Type "MovieWithYear2" is not assignable to declared type "MovieBase2"
41
+
typeddicts_extra_items.py:219:22 - error: Type "MovieWithYear2" is not assignable to declared type "MovieBase2"
37
42
"year" is not required in "MovieBase2" (reportAssignmentType)
38
-
typeddicts_extra_items.py:233:19 - error: Type "MovieDetails5" is not assignable to declared type "MovieSI"
43
+
typeddicts_extra_items.py:239:19 - error: Type "MovieDetails5" is not assignable to declared type "MovieSI"
39
44
Type of "actors" is incompatible with type of "extra_items" in "MovieSI"
40
45
Type "list[str]" is not assignable to type "str | int"
41
46
"list[str]" is not assignable to "str"
42
47
"list[str]" is not assignable to "int" (reportAssignmentType)
43
-
typeddicts_extra_items.py:247:13 - error: Type "MovieExtraStr" is not assignable to declared type "MovieExtraInt"
48
+
typeddicts_extra_items.py:253:13 - error: Type "MovieExtraStr" is not assignable to declared type "MovieExtraInt"
44
49
Type of "extra_items" is incompatible with type of "extra_items" in "MovieExtraStr"
45
50
"str" is not assignable to "int" (reportAssignmentType)
46
-
typeddicts_extra_items.py:248:13 - error: Type "MovieExtraInt" is not assignable to declared type "MovieExtraStr"
51
+
typeddicts_extra_items.py:254:13 - error: Type "MovieExtraInt" is not assignable to declared type "MovieExtraStr"
47
52
Type of "extra_items" is incompatible with type of "extra_items" in "MovieExtraInt"
48
53
"int" is not assignable to "str" (reportAssignmentType)
49
-
typeddicts_extra_items.py:259:14 - error: Type "MovieNotClosed" is not assignable to declared type "MovieExtraInt"
54
+
typeddicts_extra_items.py:265:14 - error: Type "MovieNotClosed" is not assignable to declared type "MovieExtraInt"
50
55
Type of "extra_items" is incompatible with type of "extra_items" in "MovieNotClosed"
51
56
"object" is not assignable to "int" (reportAssignmentType)
52
-
typeddicts_extra_items.py:269:1 - error: No overloads for "__init__" match the provided arguments
57
+
typeddicts_extra_items.py:275:1 - error: No overloads for "__init__" match the provided arguments
53
58
Argument types: (Literal['No Country for Old Men'], Literal[2007]) (reportCallIssue)
54
-
typeddicts_extra_items.py:276:52 - error: Argument of type "Literal['English']" cannot be assigned to parameter "language" of type "int" in function "__init__"
59
+
typeddicts_extra_items.py:282:52 - error: Argument of type "Literal['English']" cannot be assigned to parameter "language" of type "int" in function "__init__"
55
60
"Literal['English']" is not assignable to "int" (reportArgumentType)
56
-
typeddicts_extra_items.py:284:1 - error: No overloads for "__init__" match the provided arguments
61
+
typeddicts_extra_items.py:290:1 - error: No overloads for "__init__" match the provided arguments
57
62
Argument types: (Literal['No Country for Old Men'], Literal[2007]) (reportCallIssue)
58
-
typeddicts_extra_items.py:294:34 - error: Type "MovieExtraInt" is not assignable to declared type "Mapping[str, int]"
63
+
typeddicts_extra_items.py:300:34 - error: Type "MovieExtraInt" is not assignable to declared type "Mapping[str, int]"
59
64
"Mapping[str, str | int]" is not assignable to "Mapping[str, int]"
60
65
Type parameter "_VT_co@Mapping" is covariant, but "str | int" is not a subtype of "int"
61
66
Type "str | int" is not assignable to type "int"
62
67
"str" is not assignable to "int" (reportAssignmentType)
63
-
typeddicts_extra_items.py:343:25 - error: Type "dict[str, int]" is not assignable to declared type "IntDict"
68
+
typeddicts_extra_items.py:349:25 - error: Type "dict[str, int]" is not assignable to declared type "IntDict"
64
69
"dict[str, int]" is not assignable to "IntDict" (reportAssignmentType)
<thclass="column col2 partially-conformant"><divclass="hover-text">Partial<spanclass="tooltip-text" id="bottom"><p>Does not flag illegal use of `closed=False` when inheriting from a non-open TypedDict.</p></span></div></th>
0 commit comments