You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use uncalled-for for dependency injection plumbing
Docket's DI engine was extracted into the standalone `uncalled-for` library
(https://pypi.org/project/uncalled-for/). This swaps out all the internal DI
plumbing — parameter introspection, dependency resolution, validation,
`Depends()`, `Shared`, `SharedContext` — for imports from that package.
The public API is unchanged; everything is re-exported from `docket.dependencies`
exactly as before. The docket-specific bits (ContextVars, Retry, Perpetual,
ConcurrencyLimit, etc.) stay in docket.
The three ambient ContextVars (`current_docket`, `current_worker`,
`current_execution`) are now module-level variables in `_base.py` rather than
class attributes on a custom `Dependency` subclass, so `Dependency` is just a
direct re-export of `uncalled_for.Dependency`.
Net result: −394 lines, +167 lines across the dependencies package.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments