diff --git a/mypy/messages.py b/mypy/messages.py index 3beb287bcc21..6b061a379ff6 100644 --- a/mypy/messages.py +++ b/mypy/messages.py @@ -2008,6 +2008,7 @@ def untyped_decorated_function(self, typ: Type, context: Context) -> None: if isinstance(typ, AnyType): self.fail("Function is untyped after decorator transformation", context) else: + breakpoint() self.fail( f'Type of decorated function contains type "Any" ({format_type(typ, self.options)})', context, diff --git a/mypy/types.py b/mypy/types.py index 26c3e48365e0..7b65e9a80937 100644 --- a/mypy/types.py +++ b/mypy/types.py @@ -2420,9 +2420,7 @@ def __init__( if not isinstance(fallback.args[0], ProperType) or not isinstance( fallback.args[0], AnyType ): - fallback = fallback.copy_modified( - args=[AnyType(TypeOfAny.implementation_artifact)] - ) + fallback = fallback.copy_modified(args=[AnyType(TypeOfAny.special_form)]) self.partial_fallback = fallback self.items = items self.implicit = implicit