summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/11322.misc1
-rw-r--r--mypy.ini16
2 files changed, 3 insertions, 14 deletions
diff --git a/changelog.d/11322.misc b/changelog.d/11322.misc
new file mode 100644
index 0000000000..86594a332d
--- /dev/null
+++ b/changelog.d/11322.misc
@@ -0,0 +1 @@
+Add type hints to storage classes.
diff --git a/mypy.ini b/mypy.ini
index f0af4ab289..60672ea5c8 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -177,16 +177,7 @@ disallow_untyped_defs = True
 [mypy-synapse.state.*]
 disallow_untyped_defs = True
 
-[mypy-synapse.storage.databases.main.client_ips]
-disallow_untyped_defs = True
-
-[mypy-synapse.storage.databases.main.room_batch]
-disallow_untyped_defs = True
-
-[mypy-synapse.storage.databases.main.user_erasure_store]
-disallow_untyped_defs = True
-
-[mypy-synapse.storage.util.*]
+[mypy-synapse.storage]
 disallow_untyped_defs = True
 
 [mypy-synapse.streams.*]
@@ -279,10 +270,7 @@ disallow_untyped_defs = True
 [mypy-synapse.util.versionstring]
 disallow_untyped_defs = True
 
-[mypy-tests.handlers.test_user_directory]
-disallow_untyped_defs = True
-
-[mypy-tests.storage.test_user_directory]
+[mypy-tests]
 disallow_untyped_defs = True
 
 ;; Dependencies without annotations