Skip to content

Commit 93ed8dd

Browse files
make untyped-decorator not a sub cose of misc, per suggestion
1 parent 10ffd2e commit 93ed8dd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

mypy/errorcodes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

312311
NARROWED_TYPE_NOT_SUBTYPE: Final = ErrorCode(

test-data/unit/check-errorcodes.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def x() -> int: return 1
404404
def y() -> int: return 2
405405
@d # type: ignore[untyped-decorator]
406406
def 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]
408408
def z() -> int: return 4
409409

410410
[case testErrorCodeIndexing]

0 commit comments

Comments
 (0)