We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14e165d commit fa2e72bCopy full SHA for fa2e72b
mypy/plugins/proper_plugin.py
@@ -12,6 +12,7 @@
12
from typing import Callable
13
14
from mypy.checker import TypeChecker
15
+from mypy.errorcodes import MISC
16
from mypy.nodes import TypeInfo
17
from mypy.plugin import FunctionContext, Plugin
18
from mypy.subtypes import is_proper_subtype
@@ -72,6 +73,7 @@ def isinstance_proper_hook(ctx: FunctionContext) -> Type:
72
73
"If you pass on the original type"
74
" after the check, always use its unexpanded version",
75
ctx.context,
76
+ code=MISC,
77
)
78
return ctx.default_return_type
79
0 commit comments