Commit d53c6ba
fix: Resolve MyPy 'Name already defined' error using TYPE_CHECKING imports
- Use TYPE_CHECKING conditional imports to avoid MyPy duplicate name definitions
- Maintains runtime conditional import behavior for WASM compatibility
- Local MyPy check now passes successfully on all 415 source files
Co-Authored-By: AJ Steers <[email protected]>1 parent a07d4d8 commit d53c6ba
1 file changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
4 | 13 | | |
5 | 14 | | |
6 | 15 | | |
| |||
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments