summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-11-12 09:27:45 -0500
committerGitHub <noreply@github.com>2021-11-12 14:27:45 +0000
commit95547e53007be2840c78f1c45b0c5a2ea8dcb410 (patch)
tree9d194ab6a952c9e352c37ddd451cdcffca095e6f
parentAdd more type hints to synapse.util. (#11321) (diff)
downloadsynapse-95547e53007be2840c78f1c45b0c5a2ea8dcb410.tar.xz
Generalize the disallowed_untyped_defs in mypy.ini (#11322)
-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