ruff/crates/ty/src
Matthew Mckee f9a0e1e3f6
[ty] Fix panic introduced in #22076 (#22112)
<!--
Thank you for contributing to Ruff/ty! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title? (Please prefix
with `[ty]` for ty pull
  requests.)
- Does this pull request include references to any relevant issues?
-->

## Summary

Was looking over that PR and this looked wrong.

panic introduced in #22076 

## Test Plan

Before running:

```bash
cargo run -p ty check test.py --force-exclude --no-progress 
```

would result in a panic

```text
thread 'main' (162713) panicked at crates/ty/src/args.rs:459:17:
internal error: entered unreachable code: Clap should make this impossible
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

Now it does not.
2025-12-20 07:53:45 -08:00
..
args.rs [ty] Fix panic introduced in #22076 (#22112) 2025-12-20 07:53:45 -08:00
lib.rs [ty] Add `--force-exclude` option (#22076) 2025-12-20 10:03:41 +01:00
logging.rs [ty] Update salsa to fix hang when cycle head panics (#20577) 2025-09-25 17:13:07 +02:00
main.rs [ty] Use jemalloc on linux (#21975) 2025-12-15 16:04:34 +01:00
printer.rs [ty] Add `--no-progress` option (#21063) 2025-10-24 18:00:00 +02:00
python_version.rs Update default and latest Python versions for 3.14 (#20725) 2025-10-07 12:23:11 -04:00
version.rs Display `ty version` for `ty --version` and `ty -V` (#17888) 2025-05-06 08:06:41 -05:00