Commit d0937be
fix: improve handling of types in option input_type validation (#2893)
* fix: improve handling of Union and tuple types in option input_type validation
* fix: Option type handling for multiple Literals
Updates Option type resolution to return a Union of Literals when all filtered types are Literal, ensuring correct type annotation for command options.
---------
Co-authored-by: Lala Sabathil <[email protected]>1 parent 0ed71b6 commit d0937be
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
381 | 384 | | |
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
385 | 388 | | |
386 | | - | |
387 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
388 | 392 | | |
389 | 393 | | |
390 | 394 | | |
| |||
0 commit comments