Some extra type annotations
This commit is contained in:
parent
0b32e973a9
commit
459a579964
@ -260,7 +260,7 @@ def has_home_project(user_id):
|
||||
return proj_coll.count_documents({'user': user_id, 'category': 'home', '_deleted': False}) > 0
|
||||
|
||||
|
||||
def get_home_project(user_id, projection=None):
|
||||
def get_home_project(user_id: ObjectId, projection=None) -> dict:
|
||||
"""Returns the home project"""
|
||||
|
||||
proj_coll = current_app.data.driver.db['projects']
|
||||
|
Loading…
x
Reference in New Issue
Block a user