Alex

Results 10 comments of Alex

> Can you, please, revert `docs/` and styles changes to let me check logic only? @Lancetnik reset formatting, I had run ``ruff format`` before commit.

The reason this doesn't work seems to be due to the fact that this is supported: ```python def test_class_depends(): class MyDep: def __init__(self, a: int): self.a = a @inject def...

> Do you mean that in init method of ContextResource will be created context var and context stack will be stored in it? @lesnik512 Yes (this was a mistake of...

@lesnik512 > Do we really need this? I think we can achieve described behaviour with single contextvar Currently, all context resources are managed using one context-variable that stores a dictionary....

@lesnik512 >how without passing providers and containers to container_context to tear down all context resources? Do you want to to use subclasses() method of BaseContainer? My initial approach would be...

You need to install wonderwords with the `cli` dependency group. Try: ``` pip install "wonderwords[cli]" ```

Will for now only implement for `Factory` providers.

I think this is a good idea, but here you are suggesting that ``providers.Resource`` accepts a ``Callable[P, AsyncContextManager[T]]``, why not just ``AsyncContextManager[T]`` directly?

@lesnik512 I don't believe this functionality was **necessary** in the first place, since the above example would work by simply not wrapping the `create` method with a `asyncontextmanager`. From what...

@lesnik512 Yes I agree it can be useful, was just mentioning that it might not resolve this issue :)