Skip to content

Commit

Permalink
That should be special_form
Browse files Browse the repository at this point in the history
  • Loading branch information
sterliakov committed Feb 5, 2025
1 parent c3b387a commit 0a4695d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions mypy/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions mypy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4695d

Please sign in to comment.