summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-11-12 15:10:03 -0500
committerGitHub <noreply@github.com>2021-11-12 20:10:03 +0000
commit3fad4e3fe508742bbf60274f26794dbffca9e937 (patch)
treea2505240a3f6596de2b0bd796e916d06f01c9e7a
parentTest room alias deletion (#11327) (diff)
downloadsynapse-3fad4e3fe508742bbf60274f26794dbffca9e937.tar.xz
Rollback #11322 due to wrong syntax in mypy.ini. (#11332)
This was only checking the __init__ files in modules instead of
all files in a module, which don't pass yet.
Diffstat (limited to '')
-rw-r--r--changelog.d/11332.misc1
-rw-r--r--mypy.ini16
2 files changed, 15 insertions, 2 deletions
diff --git a/changelog.d/11332.misc b/changelog.d/11332.misc
new file mode 100644
index 0000000000..86594a332d
--- /dev/null
+++ b/changelog.d/11332.misc
@@ -0,0 +1 @@
+Add type hints to storage classes.
diff --git a/mypy.ini b/mypy.ini
index 67dde5991b..108e1e895c 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -175,7 +175,16 @@ disallow_untyped_defs = True
 [mypy-synapse.state.*]
 disallow_untyped_defs = True
 
-[mypy-synapse.storage]
+[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.*]
 disallow_untyped_defs = True
 
 [mypy-synapse.streams.*]
@@ -268,7 +277,10 @@ disallow_untyped_defs = True
 [mypy-synapse.util.versionstring]
 disallow_untyped_defs = True
 
-[mypy-tests]
+[mypy-tests.handlers.test_user_directory]
+disallow_untyped_defs = True
+
+[mypy-tests.storage.test_user_directory]
 disallow_untyped_defs = True
 
 [mypy-tests.rest.client.test_directory]