Commit ccf7d69
committed
fix(ai): use getattr for ctypes.windll cross-platform mypy compliance
ctypes.windll is Windows-only; accessing it directly causes mypy
[attr-defined] errors on Linux CI. Use getattr(ctypes, 'windll', None)
with explicit None check instead of relying solely on try/except.
No runtime behavior change — the AttributeError was already caught.1 parent 728e4ae commit ccf7d69
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
0 commit comments