From 09de5a602138bbefd40c2ea305ee7979f47907c6 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Tue, 24 Nov 2015 10:33:20 +0200 Subject: [PATCH] Update providers API docs --- dependency_injector/providers.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dependency_injector/providers.py b/dependency_injector/providers.py index 16651002..aba44816 100644 --- a/dependency_injector/providers.py +++ b/dependency_injector/providers.py @@ -156,17 +156,13 @@ class Factory(Provider): :py:class:`Factory` supports different syntaxes of passing injections: - + simplified one syntax for passing positional and keyword argument - injections only: - .. code-block:: python + # simplified syntax for passing positional and keyword argument + # injections only: factory = Factory(SomeClass, 'arg1', 'arg2', arg3=3, arg4=4) - - extended (full) one syntax for passing any type of injections: - - .. code-block:: python - + # extended (full) syntax for passing any type of injections: factory = Factory(SomeClass, injections.Arg(1), injections.Arg(2),