Skip to content

tools/sandpipersaas: pass dependency list to commands.add, not a string#520

Open
ThVerg wants to merge 1 commit into
olofk:mainfrom
ThVerg:fix-sandpipersaas-clean-deps
Open

tools/sandpipersaas: pass dependency list to commands.add, not a string#520
ThVerg wants to merge 1 commit into
olofk:mainfrom
ThVerg:fix-sandpipersaas-clean-deps

Conversation

@ThVerg
Copy link
Copy Markdown

@ThVerg ThVerg commented May 11, 2026

The clean target was registered with depends=" " (a single-space string). EdaCommands.add expects a list of dependency names; the string is wrong and was never intentional.

The 'clean' target was being registered with depends=" " (a string),
but EdaCommands.add expects a list of dependency names.
ThVerg added a commit to ThVerg/edalize that referenced this pull request May 13, 2026
* Remove allow_redefinition = true from the project mypy config. It
  was masking real strict-mode errors in edatool.py and tools/vpr.py.
  Fixed the three uncovered redefinitions explicitly:
    - edatool.parse_args: annotate the parse_args 'default' local as Any.
    - tools/vpr.setup: type 'depends' as str | list[str], assert before
      passing as a single dep.
    - ise_reporting._parse_twr_stats: annotate pp_units as
      pp.ParserElement so the | reassignment widens cleanly.
* Restore Node(__init__) positional ordering to pristine
  (name, deps=[], fdto={}, tool=None) so positional callers don't break.
  Validate tool with an assert inside the body; pristine crashes on
  None at .capitalize() anyway, this gives a clearer message.
* Apply the sandpipersaas depends=[] fix locally (mirrors PR olofk#520) and
  drop the silenced type:ignore.
* Apply the flows/vpr.py build_tool_graph dead-method removal locally
  (the local-only branch that I held back at the user's request) and
  drop the silenced type:ignore.

mypy: 0 errors
mypy --strict on the four strict modules: 0 errors
pytest: 474 passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant