From 7e874a4d39a6f5e83126934214351e10f2f5c450 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 4 Jul 2020 15:23:12 -0700 Subject: [PATCH] docs: Add missing mypy annotation. Signed-off-by: Anders Kaseorg --- docs/conf.py | 3 ++- mypy.ini | 5 ----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 45f49e78bd..07c39b9154 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 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: diff --git a/mypy.ini b/mypy.ini index c523d92ba2..7f33dbb660 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