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-22 10:03:58 -04:00
2025-06-28 20:24:00 +02:00
2025-07-18 23:50:29 +00:00
2025-05-16 13:25:28 +02:00
2025-07-22 10:03:58 -04:00
2025-07-08 10:48:31 -04:00
2025-07-03 13:01:09 -04:00
2025-05-16 13:25:28 +02:00
2025-07-23 09:46:40 -04:00
2025-06-28 20:24:00 +02:00
2025-07-22 17:03:14 +00:00
2025-07-09 11:28:21 +00:00
2025-05-16 13:25:28 +02:00
2025-05-09 10:47:45 +02:00
2025-07-14 13:50:58 +02:00
2025-06-13 08:40:11 -04:00
2025-06-25 10:04:15 +02:00
2025-07-07 04:07:44 +00:00
2025-05-16 13:25:28 +02:00
2025-05-16 13:25:28 +02:00
2025-07-20 22:04:14 +00:00
2025-07-23 09:46:40 -04:00
2025-05-16 13:25:28 +02:00
2025-06-07 16:02:43 +02:00
2025-05-16 13:25:28 +02:00
2025-07-22 10:03:58 -04:00
2025-07-15 10:14:49 -04:00
2025-06-26 21:27:51 +00:00
2025-07-22 10:03:58 -04:00
2025-07-16 08:50:52 -04:00
2025-07-23 09:46:40 -04:00
2025-07-23 09:46:40 -04:00
2025-07-23 07:37:46 +00:00
2025-07-23 08:24:12 -07:00
2025-07-23 07:37:46 +00:00
2025-07-09 11:28:21 +00:00
2025-07-18 19:33:35 +05:30
2025-07-21 14:01:42 +01:00
2025-07-19 15:44:44 +02:00