Comments above the first import get mangled after sorting
Comments above the first import get mangled after sorting: a task in MiMo-V2.6-RL-oss: Agentic RL Environments (MiMo RL release). I have a Python file where I put a short comment line directly above an import to explain what it's for. After running isort on the file, the comment ends up duplicated…
The task
I have a Python file where I put a short # comment line directly above an import to explain what it's for. After running isort on the file, the comment ends up duplicated / misplaced — it loses its "this comment belongs to that import" relationship. Minimal example. Input file…
Part of XiaomiMiMo/MiMo-V2.6-RL-oss.