Skip to content

Selector contexts#233

Open
xelandernt wants to merge 5 commits into
mainfrom
selector-contexts
Open

Selector contexts#233
xelandernt wants to merge 5 commits into
mainfrom
selector-contexts

Conversation

@xelandernt

@xelandernt xelandernt commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

Traverse and pin only the active Selector branch during injection context preparation.

Changes

  • Selector registers only its key provider and pins the active candidate with an injection-local context variable.
  • Injection now recursively prepares direct, string, and type-resolved provider graphs.
  • Added sync and async regressions for selected contexts, unselected async branches, nested selectors, and scope-less injection.

Checklist

  • Lint and format pass (ruff)
  • Tests pass and new behavior is covered
  • Build succeeds (uv build) if packaging or build config changed
  • Docs updated if behavior or public API changed
  • Repo metadata stays consistent across the three surfaces (GitHub description, pyproject description, profile blurb) if this touches packaging

@xelandernt xelandernt self-assigned this Jul 13, 2026
@xelandernt xelandernt added the enhancement New feature or request label Jul 13, 2026
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tests/providers/test_selector.py 100.00% <100.00%> (ø)
tests/test_injection.py 100.00% <100.00%> (ø)
that_depends/injection.py 100.00% <100.00%> (ø)
that_depends/providers/selector.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant