mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-11-13 17:58:18 +00:00
fix(types): mypy clean again over src; stub-less libraries and the benchmark imports handled in pyproject
66 errors had accumulated in src since the last green run (the hunt modules of groups 4-6, stats, candidates, runner). Codex typed them without behaviour change; the 17 inline import-untyped ignores it added are replaced by one override for dspy, pandas, statsmodels and scikit-learn, and the hunt package's lazy imports of benchmarks/ (never type-checked, not in files) are followed silently so src stays strict against their signatures. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
0d7d3f0dc9
commit
c8f7610313
@@ -409,9 +409,11 @@ def _side(side: Side, demo: Path, family: str, timeout: int, browser: BrowserExe
|
||||
if task_boundary:
|
||||
# Files are app data, so resolve their paths before writing;
|
||||
# the task runner only translates argv and environment.
|
||||
def fixture_path(_: re.Match[str], path: str = str(canary.root)) -> str:
|
||||
return path
|
||||
|
||||
file_bindings = {
|
||||
key: re.sub(r"/(?:fixture|scratch)(?=/|$)", lambda _, path=str(canary.root): path, value)
|
||||
for key, value in bindings.items()
|
||||
key: re.sub(r"/(?:fixture|scratch)(?=/|$)", fixture_path, value) for key, value in bindings.items()
|
||||
}
|
||||
private_values.extend((*bindings.values(), *file_bindings.values()))
|
||||
write_start_files(checkout, start_spec, file_bindings)
|
||||
|
||||
Reference in New Issue
Block a user