mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-24 18:43:58 +03:00
29f209d382
* Fix dependency provider stub issue with required init arg * Refactor bundles example app * Rename bundles package * Rename bundles example container * Rename bundles mini app to decoupled packages * Move decoupled packages example to main examples * Fix a typo * Add meta
12 lines
233 B
Python
12 lines
233 B
Python
"""User repositories module."""
|
|
|
|
|
|
class UserRepository:
|
|
|
|
def __init__(self, entity_factory, db):
|
|
self.entity_factory = entity_factory
|
|
self.db = db
|
|
|
|
def get(self, id):
|
|
return self.entity_factory(id=id)
|