mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-30 05:23:59 +03:00
11 lines
205 B
Python
11 lines
205 B
Python
"""Object providers example."""
|
|
|
|
import dependency_injector.providers as providers
|
|
|
|
|
|
# Creating object provider:
|
|
object_provider = providers.Object(1)
|
|
|
|
# Making some asserts:
|
|
assert object_provider() == 1
|