Skip to content

Commit 283374b

Browse files
YujunWu03claude
andcommitted
fix: add missing stdlib imports across 5 modules (closes #2)
- runtime_env/_discovery.py: add `import os` (NameError on os.environ/os.path) - cli_paper_edit.py: add `import re` (NameError on re.search/re.findall) - cli_commands.py: add `import shutil` (NameError on shutil.rmtree) - figure_gen/trim.py: add `import shutil` (NameError on shutil.copy2) - review/latex_compile.py: add `import shutil` (NameError on shutil.copy2) Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 1d1863b commit 283374b

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎nanoresearch/agents/figure_gen/trim.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import logging
66
import re
7+
import shutil
78
import subprocess
89
import sys
910
from pathlib import Path

‎nanoresearch/agents/review/latex_compile.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import logging
66
import re
7+
import shutil
78
from pathlib import Path
89

910
from nanoresearch.latex import fixer as latex_fixer

‎nanoresearch/agents/runtime_env/_discovery.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import json
66
import logging
7+
import os
78
import platform
89
import re
910
import shutil

‎nanoresearch/cli_commands.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import asyncio
66
import json
7+
import shutil
78
from pathlib import Path
89
from typing import Any
910

‎nanoresearch/cli_paper_edit.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import asyncio
66
import json
77
import os
8+
import re
89
from pathlib import Path
910
from typing import Any
1011

0 commit comments

Comments
 (0)