fix(ci): resolve uat lint + typecheck failures (CAR-1340) #47
Reference in New Issue
Block a user
Delete Branch "betty/car-1340-uat-ci-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Resolves three CI blocking issues on
uatbranch that prevent CAR-1132 production merge:1. Lint (ruff format): Removed one excess blank line in tests/conftest.py (had 3, ruff wants 2)
2. Typecheck (mypy no-redef): Removed duplicate forward-declaration block in rate_limit.py (lines 124-126). This was dead code that triggered mypy error.
3. Typecheck (mypy no-any-return): Added explicit type annotation to cache.py:38 -
value: str | bytes | Noneto resolve return type incompleteness when redis client returns Any.All fixes verified locally: ruff check ✅, ruff format ✅, mypy ✅
Closes CAR-1340
cc @cpfarhood
QA APPROVED (Charlie).
CI run #3338: all 4 jobs green (lint, typecheck, test, build-and-push).
Diff matches the CTO-specified 3-change spec exactly:
Reassigning to CTO Savannah to merge uat.