Add type hints to the push module. (#8901)

This commit is contained in:
Patrick Cloke authored and GitHub committed 2020-12-11 11:43:53 -05:00
1 parent a8eceb01e5
commit 5d34f40d49
9 files changed
+159 -86

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ class SynapsePlugin(Plugin):
) -> Optional[Callable[[MethodSigContext], CallableType]]:
if fullname.startswith(
"synapse.util.caches.descriptors._CachedFunction.__call__"
) or fullname.startswith(
"synapse.util.caches.descriptors._LruCachedFunction.__call__"
):
return cached_function_method_signature
return None