summary refs log tree commit diff
path: root/mypy.ini
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-09-24 10:38:22 +0100
committerGitHub <noreply@github.com>2021-09-24 10:38:22 +0100
commit7f3352743e02e0d02ec00eb3a50fd0ceb422286c (patch)
tree89c43e76587512528da6b175461b0d24903379bb /mypy.ini
parentIn `_purge_history_txn`, ensure that txn.fetchall has elements before accessi... (diff)
downloadsynapse-7f3352743e02e0d02ec00eb3a50fd0ceb422286c.tar.xz
Improve typing in user_directory files (#10891)
* Improve typing in user_directory files

This makes the user_directory.py in storage pass most of mypy's
checks (including `no-untyped-defs`). Unfortunately that file is in the
tangled web of Store class inheritance so doesn't pass mypy at the moment.

The handlers directory has already been mypyed.

Co-authored-by: reivilibre <olivier@librepush.net>
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini
index 3cb6cecd7e..437d0a46a5 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -85,9 +85,11 @@ files =
   tests/handlers/test_room_summary.py,
   tests/handlers/test_send_email.py,
   tests/handlers/test_sync.py,
+  tests/handlers/test_user_directory.py,
   tests/rest/client/test_login.py,
   tests/rest/client/test_auth.py,
   tests/storage/test_state.py,
+  tests/storage/test_user_directory.py,
   tests/util/test_itertools.py,
   tests/util/test_stream_change_cache.py