ruff/scripts/knot_benchmark/src/benchmark
David Peter 085a43a262
[red-knot] knot benchmark: fix `--knot-path` arg (#13923)
## Summary

Previously, this would fail with

```
AttributeError: 'str' object has no attribute 'is_file'
```

if I tried to use the `--knot-path` option. I wish we had a type checker
for Python*.

## Test Plan

```sh
uv run benchmark --knot-path ~/.cargo-target/release/red_knot
```

\* to be fair, this would probably require special handling for
`argparse` in the typechecker.
2024-10-25 11:43:39 +02:00
..
__init__.py Add basic red knot benchmark (#13026) 2024-08-23 08:22:42 +02:00
cases.py [red-knot] knot benchmark: fix `--knot-path` arg (#13923) 2024-10-25 11:43:39 +02:00
projects.py [red-knot] knot benchmark: fix `--knot-path` arg (#13923) 2024-10-25 11:43:39 +02:00
run.py [red-knot] knot benchmark: fix `--knot-path` arg (#13923) 2024-10-25 11:43:39 +02:00