diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index dfbf448e3..de02d453c 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -300,7 +300,7 @@ class BuildEnvironment(object): be emitted instantly, but collected for emitting all warnings after the update of the environment. """ - self.app.warn(msg, location=(docname, lineno), **kwargs) + self.app.warn(msg, location=(docname, lineno), **kwargs) # type: ignore def warn_node(self, msg, node, **kwargs): # type: (unicode, nodes.Node, Any) -> None