Summary
Two functions in automation/scout.py are each defined twice in the same file.
The second definitions overwrite the first ones at module load time, making the
original LLM-based extraction logic permanently unreachable dead code.
Steps to reproduce
- Open
backend/automation/scout.py
- Search for
def _parse — two definitions appear
- Search for
def _parse_wellfound — two definitions appear
- Run: python -m pyflakes automation/scout.py
Output confirms: "redefinition of unused '_parse' from line 288"
Expected behavior
Each function should be defined exactly once. The intended implementation
(either the LLM logic or the web_sources wrapper) should be the only definition present.
OS / app version
Discovered via static analysis (pyflakes) — not OS-specific
Summary
Two functions in
automation/scout.pyare each defined twice in the same file.The second definitions overwrite the first ones at module load time, making the
original LLM-based extraction logic permanently unreachable dead code.
Steps to reproduce
backend/automation/scout.pydef _parse— two definitions appeardef _parse_wellfound— two definitions appearOutput confirms: "redefinition of unused '_parse' from line 288"
Expected behavior
Each function should be defined exactly once. The intended implementation
(either the LLM logic or the web_sources wrapper) should be the only definition present.
OS / app version
Discovered via static analysis (pyflakes) — not OS-specific