mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-12-05 16:04:07 +03:00
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)
|