Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
docs: Add missing mypy annotation.
Anders Kaseorg7e874a4d39a6
diff --git a/docs/conf.py b/docs/conf.pyindex 45f49e78bda..07c39b9154c 100644--- a/docs/conf.py+++ b/docs/conf.py@@ -306,11 +306,12 @@ source_suffix = {# Temporary workaround to remove multiple build warnings caused by upstream bug.# See https://github.com/zulip/zulip/issues/13263 for details.+from commonmark.node import Nodefrom recommonmark.parser import CommonMarkParserclass CustomCommonMarkParser(CommonMarkParser):- def visit_document(self, node):+ def visit_document(self, node: Node) -> None:passdef setup(app: Any) -> None:diff --git a/mypy.ini b/mypy.iniindex c523d92ba2a..7f33dbb660f 100644--- a/mypy.ini+++ b/mypy.ini@@ -36,11 +36,6 @@ warn_unreachable = True##-# We suppress all errors in a handful of files, all of them config files.--[mypy-conf] # For docs/conf.py.-ignore_errors = True-# zerver.tornado.autoreload is a slightly-patched piece of upstream Tornado.[mypy-zerver.tornado.autoreload]ignore_errors = True