Update ruff config (#16283)

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

No files matched your search

+4 -3
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