Update ruff config (#16283)
Enable additional checks & clean-up unneeded configuration.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user