Closures and the @ symbol — what AI is doing when it stacks decorators — step 6 of 9
Claude wrote a decorator and forgot to return the inner wrapper from
the outer function. As a result, the decorated function is None and
the script crashes with a TypeError. Add the missing return wrapper
inside loud. Output should be:
calling: add
5
The break is on line 5 — but read the whole snippet first.
⌘↵ runs the editor.read, then continue.
Claude wrote a decorator and forgot to return the inner wrapper from
the outer function. As a result, the decorated function is None and
the script crashes with a TypeError. Add the missing return wrapper
inside loud. Output should be:
calling: add
5
The break is on line 5 — but read the whole snippet first.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.