diff options
author | Mathieu Velten <mathieuv@matrix.org> | 2022-08-11 14:26:40 +0200 |
---|---|---|
committer | Mathieu Velten <mathieuv@matrix.org> | 2022-08-12 16:20:26 +0200 |
commit | 941ab4b483e24997106e2478e37057450c4f9c14 (patch) | |
tree | b583812cce5c928935e234e52e5910ea36de0a68 /scripts-dev/mypy_synapse_plugin.py | |
parent | Add test for account validity feature (diff) | |
download | synapse-941ab4b483e24997106e2478e37057450c4f9c14.tar.xz |
Add cache invalidation to module API github/mv/test-account-validity mv/test-account-validity
Diffstat (limited to 'scripts-dev/mypy_synapse_plugin.py')
-rw-r--r-- | scripts-dev/mypy_synapse_plugin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts-dev/mypy_synapse_plugin.py b/scripts-dev/mypy_synapse_plugin.py index d08517a953..2c377533c0 100644 --- a/scripts-dev/mypy_synapse_plugin.py +++ b/scripts-dev/mypy_synapse_plugin.py @@ -29,7 +29,7 @@ class SynapsePlugin(Plugin): self, fullname: str ) -> Optional[Callable[[MethodSigContext], CallableType]]: if fullname.startswith( - "synapse.util.caches.descriptors._CachedFunction.__call__" + "synapse.util.caches.descriptors.CachedFunction.__call__" ) or fullname.startswith( "synapse.util.caches.descriptors._LruCachedFunction.__call__" ): @@ -38,7 +38,7 @@ class SynapsePlugin(Plugin): def cached_function_method_signature(ctx: MethodSigContext) -> CallableType: - """Fixes the `_CachedFunction.__call__` signature to be correct. + """Fixes the `CachedFunction.__call__` signature to be correct. It already has *almost* the correct signature, except: |