mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-25 11:04:01 +03:00
Updating concept example
This commit is contained in:
parent
d286b2565c
commit
3c7e7a8434
|
@ -64,6 +64,7 @@ assert a1.db is a2.db is b1.db is b2.db is Catalog.database()
|
|||
@inject(KwArg('b', Catalog.object_b_factory))
|
||||
@inject(KwArg('database', Catalog.database))
|
||||
def example(a, b, database):
|
||||
"""Example callback."""
|
||||
assert a.db is b.db is database is Catalog.database()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user