Skip to content

test: type-check CacheChecker tests - #12218

Merged
julian-risch merged 2 commits into
deepset-ai:mainfrom
yaodong-shen:fix/type-check-caching-tests
Aug 3, 2026
Merged

julian-risch merged 2 commits into
deepset-ai:mainfrom
yaodong-shen:fix/type-check-caching-tests

Conversation

@yaodong-shen

@yaodong-shen yaodong-shen commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Related issue

Part of #10396

Summary

  • include test/components/caching/ in the Hatch typing target
  • use patch.object rather than reassigning a class method, keeping the CacheChecker test type-checkable

Validation

  • hatch run fmt-check test/components/caching/test_cache_checker.py test/components/caching/test_cache_checker_async.py pyproject.toml
  • hatch -e test run mypy --show-traceback --install-types --non-interactive --cache-dir=.mypy_cache test/components/caching/

This is a test/typing-only change, so it has no user-facing release note.

This PR was prepared with an AI assistant; the focused checks listed above passed, and the contributor remains responsible for reviewing it.

@yaodong-shen
yaodong-shen requested a review from a team as a code owner August 2, 2026 16:14
@yaodong-shen
yaodong-shen requested review from julian-risch and removed request for a team August 2, 2026 16:14
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

@yaodong-shen is attempting to deploy a commit to the deepset Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

CLAassistant commented Aug 2, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Both pyproject.toml and test/components/caching/test_cache_checker.py lost
their final newline, which fails ruff W292 / ruff format in `hatch run
fmt-check` and pre-commit's end-of-file-fixer.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

@julian-risch julian-risch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍 @yaodong-shen Thank you for your contribution and congratulations on your first PR merged into Haystack! 🎉

@julian-risch
julian-risch enabled auto-merge (squash) August 3, 2026 11:24
@julian-risch
julian-risch merged commit 29a50e2 into deepset-ai:main Aug 3, 2026
21 of 22 checks passed
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Coverage report

This PR does not seem to contain any modification to coverable code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants