Commit fea4807
fix: 修复 mypy 在 Linux 上的 unused-ignore 错误
问题:resource.RLIMIT_AS 和 resource.RLIMIT_DATA 在 Linux 上存在,
mypy 报告 type: ignore[attr-defined] 是多余的。
修复:添加 unused-ignore 到 type: ignore 注释,同时兼容:
- Windows: 忽略 attr-defined(属性不存在)
- Linux: 忽略 unused-ignore(忽略注释多余)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent bf2ec62 commit fea4807
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
0 commit comments