From 1a7a44e6a2cd0127a5aa21c3291ebc139e7e5af5 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Tue, 16 Oct 2018 09:58:25 +0900 Subject: [PATCH] Fix mypy violation --- sphinx/ext/napoleon/docstring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/ext/napoleon/docstring.py b/sphinx/ext/napoleon/docstring.py index f8a1327aa..f64a7cdce 100644 --- a/sphinx/ext/napoleon/docstring.py +++ b/sphinx/ext/napoleon/docstring.py @@ -704,7 +704,7 @@ class GoogleDocstring(UnicodeMixin): fields = self._consume_fields(parse_type=False, prefer_type=True) lines = [] # type: List[unicode] for _name, _type, _desc in fields: - m = self._name_rgx.match(_type).groupdict() # type: ignore + m = self._name_rgx.match(_type).groupdict() if m['role']: _type = m['name'] _type = ' ' + _type if _type else ''