summary refs log tree commit diff
path: root/synapse/_scripts/review_recent_signups.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-11-10 12:55:32 -0500
committerGitHub <noreply@github.com>2021-11-10 17:55:32 +0000
commit66c4b774fdc72f2f6bef69b2ffd5632f95e27b63 (patch)
tree2953d210c9a619f2f1c12f5438553e2a20e05657 /synapse/_scripts/review_recent_signups.py
parentAdd documentation page stubs for Single Sign-On, SAML and CAS pages (#11298) (diff)
downloadsynapse-66c4b774fdc72f2f6bef69b2ffd5632f95e27b63.tar.xz
Add type hints to synapse._scripts (#11297)
Diffstat (limited to 'synapse/_scripts/review_recent_signups.py')
-rw-r--r--synapse/_scripts/review_recent_signups.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/_scripts/review_recent_signups.py b/synapse/_scripts/review_recent_signups.py
index 8e66a38421..093af4327a 100644
--- a/synapse/_scripts/review_recent_signups.py
+++ b/synapse/_scripts/review_recent_signups.py
@@ -92,7 +92,7 @@ def get_recent_users(txn: LoggingTransaction, since_ms: int) -> List[UserInfo]:
     return user_infos
 
 
-def main():
+def main() -> None:
     parser = argparse.ArgumentParser()
     parser.add_argument(
         "-c",
@@ -142,7 +142,8 @@ def main():
     engine = create_engine(database_config.config)
 
     with make_conn(database_config, engine, "review_recent_signups") as db_conn:
-        user_infos = get_recent_users(db_conn.cursor(), since_ms)
+        # This generates a type of Cursor, not LoggingTransaction.
+        user_infos = get_recent_users(db_conn.cursor(), since_ms)  # type: ignore[arg-type]
 
     for user_info in user_infos:
         if exclude_users_with_email and user_info.emails: