summary refs log tree commit diff
path: root/scripts-dev/mypy_synapse_plugin.py
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2023-11-06 09:29:25 -0500
committerPatrick Cloke <patrickc@matrix.org>2023-11-08 10:32:45 -0500
commit239630a31a63ebef4cb020c81402fd0b7f1b8659 (patch)
tree932a3565c586d70bf89338db0f7f8aad0d43ebbf /scripts-dev/mypy_synapse_plugin.py
parenttemp (diff)
downloadsynapse-clokep/push-parallel-2.tar.xz
Diffstat (limited to '')
-rw-r--r--scripts-dev/mypy_synapse_plugin.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts-dev/mypy_synapse_plugin.py b/scripts-dev/mypy_synapse_plugin.py

index 62f1703728..97d3f0ccb1 100644 --- a/scripts-dev/mypy_synapse_plugin.py +++ b/scripts-dev/mypy_synapse_plugin.py
@@ -67,12 +67,7 @@ class SynapsePlugin(Plugin): ) -> Optional[Callable[[AttributeContext], mypy.types.Type]]: # Anything in synapse could be wrapped with the cached decorator, but # we know that anything else is *not*. - if fullname.startswith( - ( - "synapse.util.caches.descriptors.CachedFunction", - "synapse.util.caches.descriptors._LruCachedFunction", - ) - ): + if fullname == "synapse.util.caches.descriptors.CachedFunction.__call__": return cached_function_method_attribute return None