python-dependency-injector icon indicating copy to clipboard operation
python-dependency-injector copied to clipboard

Typing info for nested containers

Open toinbis opened this issue 2 years ago • 0 comments
trafficstars

https://python-dependency-injector.ets-labs.org/examples/application-multiple-containers.html - I have setup identical to this example.

user_service: UserService = Provide[Application.services.user] - I get typing hints for Application (i.e. editor suggest services as autocomplete), bet not for services themselves (user is not suggested as an autocomplete in vscode).

Is it possible to have fully typed codebase experience with nested containers? Thanks!

toinbis avatar May 18 '23 09:05 toinbis