Update ruff config (#16283)

Enable additional checks & clean-up unneeded configuration.
This commit is contained in:
Patrick Cloke
2023-09-08 11:24:36 -04:00
committed by GitHub
parent c1c6c95d72
commit aa483cb4c9
26 changed files with 63 additions and 64 deletions

View File

@@ -30,9 +30,10 @@ class SynapsePlugin(Plugin):
self, fullname: str
) -> Optional[Callable[[MethodSigContext], CallableType]]:
if fullname.startswith(
"synapse.util.caches.descriptors.CachedFunction.__call__"
) or fullname.startswith(
"synapse.util.caches.descriptors._LruCachedFunction.__call__"
(
"synapse.util.caches.descriptors.CachedFunction.__call__",
"synapse.util.caches.descriptors._LruCachedFunction.__call__",
)
):
return cached_function_method_signature
return None