Commit 989e513
committed
fix(static): resolve basedpyright warnings that fail CI
basedpyright's default exit code is non-zero whenever any diagnostics
are reported, so the 8 warnings introduced by the fork-only commits
were failing the Static Analysis job on PR #3 even though there were
no errors.
- src/deriver/queue_manager.py: drop `item.created_at is not None`
guards. created_at is `Mapped[datetime.datetime]` (non-nullable), so
the checks were always True and basedpyright flagged them as
reportUnnecessaryComparison.
- tests/sdk/test_session.py: factor out the shared mock-response body
into a single helper and give the per-branch closures distinct names.
This clears reportRedeclaration on `calls` / `fake_post` and lets the
`# pyright: ignore` comments target the actual warning
(reportPrivateUsage on `_http` / `_async_http_client`) instead of the
irrelevant reportAttributeAccessIssue that was flagged as an
unnecessary ignore.1 parent 4a17a21 commit 989e513
2 files changed
Lines changed: 50 additions & 61 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
1169 | | - | |
1170 | | - | |
1171 | | - | |
1172 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1173 | 1172 | | |
1174 | 1173 | | |
1175 | 1174 | | |
| |||
1201 | 1200 | | |
1202 | 1201 | | |
1203 | 1202 | | |
1204 | | - | |
1205 | | - | |
1206 | | - | |
1207 | | - | |
1208 | | - | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
1213 | | - | |
1214 | | - | |
1215 | | - | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
| 1206 | + | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1216 | 1214 | | |
1217 | 1215 | | |
1218 | 1216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
397 | 422 | | |
398 | 423 | | |
399 | 424 | | |
400 | 425 | | |
401 | 426 | | |
402 | 427 | | |
403 | 428 | | |
404 | | - | |
405 | | - | |
406 | | - | |
| 429 | + | |
407 | 430 | | |
408 | 431 | | |
409 | 432 | | |
410 | 433 | | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 434 | + | |
427 | 435 | | |
428 | | - | |
| 436 | + | |
429 | 437 | | |
430 | 438 | | |
431 | 439 | | |
| |||
436 | 444 | | |
437 | 445 | | |
438 | 446 | | |
439 | | - | |
440 | | - | |
441 | | - | |
| 447 | + | |
442 | 448 | | |
443 | 449 | | |
444 | 450 | | |
445 | 451 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
| 452 | + | |
462 | 453 | | |
463 | | - | |
| 454 | + | |
464 | 455 | | |
465 | 456 | | |
466 | 457 | | |
| |||
0 commit comments