ZipFile

Results 57 comments of ZipFile

This is expected behavior since v4.48.0, [see](https://python-dependency-injector.ets-labs.org/providers/resource.html#context-manager-initializer) [docs](https://python-dependency-injector.ets-labs.org/providers/resource.html#asynchronous-initializers). `RabbitBroker` implements async context manager protocol, so we try to initialize it (call to `__aenter__`) in the `Resource` provider. `app` became async...

How do you verify this part: ```python # Expected: Auth.Token receives "ghp_mytoken123" # Actual: Auth.Token receives ``` ? If you do: ```python logging.info("token %s", container.github_token()._token) ``` everything should be resolved...

In the code you provided you never invoke `github_token` provider. Please provide a reproducible code demonstrating the problem without involving the debugger. Ideally without usage of thirt-party libraries too.

There were no changes regarding pydantic support in recent versions, so I guess the issue is that we [assume](https://github.com/ets-labs/python-dependency-injector/blob/master/src/dependency_injector/providers.pyx#L48-L60) that `pydantic-settings` is always installed, and fallback to importing settings from...

I've checked what's going on. Cython v3.2 improved error handling on imports. DI v4.48.3 was built with Cython v3.2, hence a proper warning is triggered now. But nevertheless, existing behavior...

`assert_type` is a Python 3.11 feature, those test were written before this function even existed. If you're willing to retrofit them, I'll gladly accept a PR.

> Though I'd like to see what the maintainers think before working on a PR. I think better type support is always welcome. > 1. Simply making Selector generic to...