Fix ty possibly-missing-attribute warnings in tests#267
Conversation
ctx.messages is list[Optional[TemplateMessage]] (ghost slots are None), so comprehensions iterating it directly need an 'm is not None' guard. In test_skill_pairing, collect the narrowed SessionHeaderMessage contents instead of the wrapper messages so the isinstance narrowing survives into the follow-up comprehensions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughTest files updated to add explicit ChangesNone-safe test message filtering
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ctx.messages is list[Optional[TemplateMessage]] (ghost slots are None), so comprehensions iterating it directly need an 'm is not None' guard. In test_skill_pairing, collect the narrowed SessionHeaderMessage contents instead of the wrapper messages so the isinstance narrowing survives into the follow-up comprehensions.
Summary by CodeRabbit
Noneentries while scanning message lists.