Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

templates: Fix Python-Markdown extension type.

Anders Kaseorg6fe5cb65a13f
diff --git a/zerver/lib/templates.py b/zerver/lib/templates.py
index 6000886d9d1..e1cc6b899a8 100644
--- a/zerver/lib/templates.py
+++ b/zerver/lib/templates.py
@@ -65,8 +65,8 @@ def display_list(values: List[str], display_limit: int) -> str:
return display_string
-md_extensions: Optional[List[Any]] = None
-md_macro_extension: Optional[Any] = None
+md_extensions: Optional[List[markdown.Extension]] = None
+md_macro_extension: Optional[markdown.Extension] = None
# Prevent the automatic substitution of macros in these docs. If
# they contain a macro, it is always used literally for documenting
# the macro system.