Commit 7356afb
committed
fix(options): improve type safety for SparseArray handling
- Update SparseArray type parameter to include all value types
- Add proper type checking for both dict and SparseArray cases
- Fix return type casting in _show_option method
- Resolve mypy errors related to string indexing of SparseArray1 parent 8572639 commit 7356afb
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
368 | 372 | | |
369 | 373 | | |
370 | 374 | | |
371 | | - | |
| 375 | + | |
372 | 376 | | |
373 | 377 | | |
374 | 378 | | |
| |||
1071 | 1075 | | |
1072 | 1076 | | |
1073 | 1077 | | |
1074 | | - | |
1075 | | - | |
| 1078 | + | |
| 1079 | + | |
1076 | 1080 | | |
1077 | | - | |
| 1081 | + | |
1078 | 1082 | | |
1079 | 1083 | | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1080 | 1091 | | |
1081 | 1092 | | |
1082 | 1093 | | |
| |||
0 commit comments