Add simplified syntax of kwarg injections for `Callable` provider

This commit is contained in:
Roman Mogilatov 2015-09-01 15:21:55 +03:00
parent bb33c925de
commit babb49448a

View File

@ -13,6 +13,8 @@ Development version
- Add simplified syntax of kwarg injections for ``Factory`` and ``Singleton`` - Add simplified syntax of kwarg injections for ``Factory`` and ``Singleton``
providers: ``Factory(SomeClass, dependency1=injectable_provider_or_value)``. providers: ``Factory(SomeClass, dependency1=injectable_provider_or_value)``.
- Add simplified syntax of kwarg injections for ``Callable`` provider:
``Callable(some_callable, dependency1=injectable_provider_or_value)``
- Add simplified syntax of kwarg injections for ``@inject`` decorator: - Add simplified syntax of kwarg injections for ``@inject`` decorator:
``@inject(dependency1=injectable_provider_or_value)``. ``@inject(dependency1=injectable_provider_or_value)``.
- Optimize ``@inject`` decorations when they were made several times for the - Optimize ``@inject`` decorations when they were made several times for the