Skip to content

Add context manager support, __repr__, and skip_creator_parsing warning#165

Merged
lesnik512 merged 1 commit intomainfrom
ux-improvements
Apr 15, 2026
Merged

Add context manager support, __repr__, and skip_creator_parsing warning#165
lesnik512 merged 1 commit intomainfrom
ux-improvements

Conversation

@lesnik512
Copy link
Copy Markdown
Member

  • Container supports with/async with via enter/exit/aenter/aexit
  • Factory and ContextProvider have informative repr
  • Container.repr shows scope, provider count, and cached count
  • Warn when skip_creator_parsing=True without explicit bound_type
  • Add len to ProvidersRegistry and cached_count() to CacheRegistry

- Container supports `with`/`async with` via __enter__/__exit__/__aenter__/__aexit__
- Factory and ContextProvider have informative __repr__
- Container.__repr__ shows scope, provider count, and cached count
- Warn when skip_creator_parsing=True without explicit bound_type
- Add __len__ to ProvidersRegistry and cached_count() to CacheRegistry
@lesnik512 lesnik512 self-assigned this Apr 15, 2026
@lesnik512 lesnik512 merged commit 5f466fe into main Apr 15, 2026
7 checks passed
@lesnik512 lesnik512 deleted the ux-improvements branch April 15, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant