Jack O'Connor
88bd82938f
[ty] highlight the argument in static_assert error messages (#19426)
Closes https://github.com/astral-sh/ty/issues/209.
Before:
```
error[static-assert-error]: Static assertion error: custom message
--> test.py:2:1
|
1 | from ty_extensions import static_assert
2 | static_assert(3 > 4, "custom message")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
```
After:
```
error[static-assert-error]: Static assertion error: custom message
--> test.py:2:1
|
1 | from ty_extensions import static_assert
2 | static_assert(3 > 4, "custom message")
| ^^^^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^
| |
| Inferred type of argument is `Literal[False]`
|
```
2025-07-23 08:24:12 -07:00
..
2025-07-23 08:24:12 -07:00
2025-07-23 08:24:12 -07:00
2025-07-18 19:33:35 +05:30
2025-05-03 19:49:15 +02:00
2025-07-22 20:39:39 +02:00
2025-05-03 19:49:15 +02:00
2025-05-03 19:49:15 +02:00