[#8467] misc type hints
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 89537d8..d9cdf9a 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -1224,7 +1224,7 @@
It should be overridden for your specific envirnoment'''
return None
- def registration_date(self, project):
+ def registration_date(self, project) -> datetime:
'''
Return the datetime the project was created.
'''
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index c0a010f..f0d3552 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -1015,7 +1015,7 @@
uids = [uid for uid in named_roles.userids_that_reach if uid is not None]
return list(User.query.find({'_id': {'$in': uids}, 'disabled': False, 'pending': False}))
- def users_with_role(self, *role_names):
+ def users_with_role(self, *role_names) -> list[User]:
"""Return all users in this project that have at least one of the roles
specified.