mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-26 19:43:58 +03:00
c4b33749d2
* Update callable provider docs * Update coroutine provider docs * Edit object docs * Edit list provider docs * Edit configuration provider docs * Edit selector provider docs * Fix mypy stub of the ``DeclarativeContainer`` to specify the ``__init__`` interface * Edit Dependency provider docs
18 lines
462 B
ReStructuredText
18 lines
462 B
ReStructuredText
Object provider
|
|
---------------
|
|
|
|
.. meta::
|
|
:keywords: Python,DI,Dependency injection,IoC,Inversion of Control,Object
|
|
:description: Object provider provides an object "as is". This page demonstrates how to use an
|
|
Object provider.
|
|
|
|
.. currentmodule:: dependency_injector.providers
|
|
|
|
:py:class:`Object` provider returns an object "as is".
|
|
|
|
.. literalinclude:: ../../examples/providers/object.py
|
|
:language: python
|
|
:lines: 3-
|
|
|
|
.. disqus::
|