summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-02-08 13:49:18 -0500
committerGitHub <noreply@github.com>2023-02-08 18:49:18 +0000
commit975f7ba904347094901cb7badf00977b62b9a254 (patch)
tree939c40702014ab43512ed27a547a4c6cf7378e2a
parentMSC3873: Escape keys when flattening dicts. (#15004) (diff)
downloadsynapse-975f7ba904347094901cb7badf00977b62b9a254.tar.xz
Explicit disabling of disallowed_untyped_defs. (#15026)
To make it easier to see which files still need to be fixed.
Diffstat (limited to '')
-rw-r--r--changelog.d/15026.misc1
-rw-r--r--mypy.ini83
2 files changed, 26 insertions, 58 deletions
diff --git a/changelog.d/15026.misc b/changelog.d/15026.misc
new file mode 100644
index 0000000000..93ceaeafc9
--- /dev/null
+++ b/changelog.d/15026.misc
@@ -0,0 +1 @@
+Improve type hints.
diff --git a/mypy.ini b/mypy.ini
index 4598002c4a..1bdeb18d94 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -60,81 +60,48 @@ disallow_untyped_defs = False
 [mypy-synapse.storage.database]
 disallow_untyped_defs = False
 
-[mypy-tests.*]
+[mypy-tests.scripts.test_new_matrix_user]
 disallow_untyped_defs = False
 
-[mypy-tests.api.*]
-disallow_untyped_defs = True
-
-[mypy-tests.app.*]
-disallow_untyped_defs = True
-
-[mypy-tests.appservice.*]
-disallow_untyped_defs = True
-
-[mypy-tests.config.*]
-disallow_untyped_defs = True
-
-[mypy-tests.crypto.*]
-disallow_untyped_defs = True
-
-[mypy-tests.events.*]
-disallow_untyped_defs = True
-
-[mypy-tests.federation.*]
-disallow_untyped_defs = True
-
-[mypy-tests.handlers.*]
-disallow_untyped_defs = True
-
-[mypy-tests.http.*]
-disallow_untyped_defs = True
-
-[mypy-tests.logging.*]
-disallow_untyped_defs = True
+[mypy-tests.server_notices.test_consent]
+disallow_untyped_defs = False
 
-[mypy-tests.metrics.*]
-disallow_untyped_defs = True
+[mypy-tests.server_notices.test_resource_limits_server_notices]
+disallow_untyped_defs = False
 
-[mypy-tests.push.*]
-disallow_untyped_defs = True
+[mypy-tests.test_distributor]
+disallow_untyped_defs = False
 
-[mypy-tests.replication.*]
-disallow_untyped_defs = True
+[mypy-tests.test_event_auth]
+disallow_untyped_defs = False
 
-[mypy-tests.rest.*]
-disallow_untyped_defs = True
+[mypy-tests.test_federation]
+disallow_untyped_defs = False
 
-[mypy-tests.state.test_profile]
-disallow_untyped_defs = True
+[mypy-tests.test_mau]
+disallow_untyped_defs = False
 
-[mypy-tests.storage.*]
-disallow_untyped_defs = True
+[mypy-tests.test_rust]
+disallow_untyped_defs = False
 
-[mypy-tests.test_server]
-disallow_untyped_defs = True
+[mypy-tests.test_test_utils]
+disallow_untyped_defs = False
 
-[mypy-tests.test_state]
-disallow_untyped_defs = True
+[mypy-tests.test_types]
+disallow_untyped_defs = False
 
-[mypy-tests.test_terms_auth]
-disallow_untyped_defs = True
+[mypy-tests.test_utils.*]
+disallow_untyped_defs = False
 
-[mypy-tests.types.*]
-disallow_untyped_defs = True
+[mypy-tests.test_visibility]
+disallow_untyped_defs = False
 
-[mypy-tests.util.caches.*]
-disallow_untyped_defs = True
+[mypy-tests.unittest]
+disallow_untyped_defs = False
 
 [mypy-tests.util.caches.test_descriptors]
 disallow_untyped_defs = False
 
-[mypy-tests.util.*]
-disallow_untyped_defs = True
-
-[mypy-tests.utils]
-disallow_untyped_defs = True
-
 ;; Dependencies without annotations
 ;; Before ignoring a module, check to see if type stubs are available.
 ;; The `typeshed` project maintains stubs here: