mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 19:14:00 +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
11 lines
179 B
Python
11 lines
179 B
Python
"""`Object` provider example."""
|
|
|
|
from dependency_injector import providers
|
|
|
|
|
|
object_provider = providers.Object(1)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
assert object_provider() == 1
|