Skip to content

Commit 0a4695d

Browse files
committed
That should be special_form
1 parent c3b387a commit 0a4695d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mypy/messages.py

+1
Original file line numberDiff line numberDiff line change
@@ -2008,6 +2008,7 @@ def untyped_decorated_function(self, typ: Type, context: Context) -> None:
20082008
if isinstance(typ, AnyType):
20092009
self.fail("Function is untyped after decorator transformation", context)
20102010
else:
2011+
breakpoint()
20112012
self.fail(
20122013
f'Type of decorated function contains type "Any" ({format_type(typ, self.options)})',
20132014
context,

mypy/types.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -2420,9 +2420,7 @@ def __init__(
24202420
if not isinstance(fallback.args[0], ProperType) or not isinstance(
24212421
fallback.args[0], AnyType
24222422
):
2423-
fallback = fallback.copy_modified(
2424-
args=[AnyType(TypeOfAny.implementation_artifact)]
2425-
)
2423+
fallback = fallback.copy_modified(args=[AnyType(TypeOfAny.special_form)])
24262424
self.partial_fallback = fallback
24272425
self.items = items
24282426
self.implicit = implicit

0 commit comments

Comments
 (0)