File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,6 @@ def __hash__(self) -> int:
306306 "untyped-decorator" ,
307307 "Error if an untyped decorator makes a typed function untyped" ,
308308 "General" ,
309- sub_code_of = MISC ,
310309)
311310
312311NARROWED_TYPE_NOT_SUBTYPE : Final = ErrorCode (
Original file line number Diff line number Diff line change @@ -404,7 +404,7 @@ def x() -> int: return 1
404404def y() -> int: return 2
405405@d # type: ignore[untyped-decorator]
406406def best() -> int: return 3
407- @d # type: ignore[misc] # E: Unused "type: ignore" comment, use narrower [untyped-decorator] instead of [misc] code [unused-ignore ]
407+ @d # E: Untyped decorator makes function "z" untyped [untyped-decorator]
408408def z() -> int: return 4
409409
410410[case testErrorCodeIndexing]
You can’t perform that action at this time.
0 commit comments