docs: Add missing mypy annotation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-04 15:23:12 -07:00 committed by Tim Abbott
parent dbd1b56362
commit 7e874a4d39
2 changed files with 2 additions and 6 deletions

View File

@ -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 Node
from recommonmark.parser import CommonMarkParser
class CustomCommonMarkParser(CommonMarkParser):
def visit_document(self, node):
def visit_document(self, node: Node) -> None:
pass
def setup(app: Any) -> None:

View File

@ -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