mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-30 05:23:59 +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)
|