Commit 88c18b9
refactor: Use typing.Self for disabled() return type, remove redundant overrides
The base AIConfigDefault.disabled() already uses cls(), so subclass
overrides were unnecessary. Use Self return type annotation for
correct narrowing and remove the three identical overrides from
AICompletionConfigDefault, AIAgentConfigDefault, AIJudgeConfigDefault.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d721142 commit 88c18b9
1 file changed
Lines changed: 8 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
154 | | - | |
| 161 | + | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
| |||
207 | 214 | | |
208 | 215 | | |
209 | 216 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | 217 | | |
215 | 218 | | |
216 | 219 | | |
| |||
253 | 256 | | |
254 | 257 | | |
255 | 258 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | 259 | | |
261 | 260 | | |
262 | 261 | | |
| |||
303 | 302 | | |
304 | 303 | | |
305 | 304 | | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | 305 | | |
311 | 306 | | |
312 | 307 | | |
| |||
0 commit comments