summary refs log tree commit diff
path: root/mypy.ini
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-10-18 15:01:10 -0400
committerGitHub <noreply@github.com>2021-10-18 15:01:10 -0400
commit3ab55d43bd66b377c1ed94a40931eba98dd07b01 (patch)
tree44ebe940127f32bde6e497211f5baf7647442117 /mypy.ini
parentCheck auth on received events' auth_events (#11001) (diff)
downloadsynapse-3ab55d43bd66b377c1ed94a40931eba98dd07b01.tar.xz
Add missing type hints to synapse.api. (#11109)
* Convert UserPresenceState to attrs.
* Remove args/kwargs from error classes and explicitly pass msg/errorcode.
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini3
1 files changed, 3 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini
index cb4489eb37..14d8bb8eaf 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -100,6 +100,9 @@ files =
   tests/util/test_itertools.py,
   tests/util/test_stream_change_cache.py
 
+[mypy-synapse.api.*]
+disallow_untyped_defs = True
+
 [mypy-synapse.events.*]
 disallow_untyped_defs = True