You are working on the Lightning-AI/pytorch-lightning repository. The source code is checked out at /testbed…
You are working on the Lightning-AI/pytorch-lightning repository. The source code is checked out at /testbed…: a task in SWE-Lego-RL-2699 (Harbor dataset). The decorator form @registry.register("name") raises a TypeError because the nested function expects two arguments (name and accelerator) but…
The task
The decorator form `@registry.register("name")` raises a TypeError because the nested function expects two arguments (name and accelerator) but it only passes the decorated class as a single argument.
Part of Lego-X/Lego-RL-2699.