summary refs log tree commit diff
path: root/mypy.ini
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-09-03 15:38:32 +0100
committerGitHub <noreply@github.com>2020-09-03 15:38:32 +0100
commit208e1d3eb345dca12e25696e30cee7e788b65ae2 (patch)
tree1075ad1835ff5d9451c599643c16ecd62e8dc3ca /mypy.ini
parentRemove useless changelog about reverting a #8239. (diff)
downloadsynapse-208e1d3eb345dca12e25696e30cee7e788b65ae2.tar.xz
Fix typing for `@cached` wrapped functions (#8240)
This requires adding a mypy plugin to fiddle with the type signatures a bit.
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/mypy.ini b/mypy.ini
index ae3290d5bb..8a351eabfe 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -1,6 +1,6 @@
 [mypy]
 namespace_packages = True
-plugins = mypy_zope:plugin
+plugins = mypy_zope:plugin, scripts-dev/mypy_synapse_plugin.py
 follow_imports = silent
 check_untyped_defs = True
 show_error_codes = True
@@ -51,6 +51,7 @@ files =
   synapse/storage/util,
   synapse/streams,
   synapse/types.py,
+  synapse/util/caches/descriptors.py,
   synapse/util/caches/stream_change_cache.py,
   synapse/util/metrics.py,
   tests/replication,