Commit d642532
fix: mypy — exclude gui from mypy, cast optimizer return type, remove unused ignore
- pyproject.toml: add exclude = ['src/specsmith/gui'] to [tool.mypy];
PySide6 is an optional extra not in the mypy environment so GUI classes
that subclass Qt types caused false 'cannot subclass Any' errors
- optimizer.py: cast entry['response'] to str to satisfy no-any-return
- optimizer.py: remove unused # type: ignore[assignment] on _last_cache_cost
Co-Authored-By: Oz <oz-agent@warp.dev>1 parent 26fec19 commit d642532
2 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
420 | | - | |
| 420 | + | |
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
803 | | - | |
| 803 | + | |
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| |||
0 commit comments