mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 09:57:37 +03:00 
			
		
		
		
	Update providers API docs
This commit is contained in:
		
							parent
							
								
									46a89600cb
								
							
						
					
					
						commit
						09de5a6021
					
				| 
						 | 
					@ -156,17 +156,13 @@ class Factory(Provider):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    :py:class:`Factory` supports different syntaxes of passing injections:
 | 
					    :py:class:`Factory` supports different syntaxes of passing injections:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    + simplified one syntax for passing positional and keyword argument
 | 
					 | 
				
			||||||
      injections only:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    .. code-block:: python
 | 
					    .. code-block:: python
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # simplified syntax for passing positional and keyword argument
 | 
				
			||||||
 | 
					        # injections only:
 | 
				
			||||||
        factory = Factory(SomeClass, 'arg1', 'arg2', arg3=3, arg4=4)
 | 
					        factory = Factory(SomeClass, 'arg1', 'arg2', arg3=3, arg4=4)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - extended (full) one syntax for passing any type of injections:
 | 
					        # extended (full) syntax for passing any type of injections:
 | 
				
			||||||
 | 
					 | 
				
			||||||
    .. code-block:: python
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        factory = Factory(SomeClass,
 | 
					        factory = Factory(SomeClass,
 | 
				
			||||||
                          injections.Arg(1),
 | 
					                          injections.Arg(1),
 | 
				
			||||||
                          injections.Arg(2),
 | 
					                          injections.Arg(2),
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user