summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/__init__.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-13 01:33:14 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-15 02:42:42 +0900
commit53917f228f9bfbb4607b6441119baeb129869b93 (patch)
tree4e87e2e8a2fc209f74a3675dc0f079bda78b6a3b /sphinx/ext/autodoc/__init__.py
parentf8a2e7aa8af27b9d90330d9d795ef20fe0158001 (diff)
downloadsphinx-git-53917f228f9bfbb4607b6441119baeb129869b93.tar.gz
Move to py3 mode for mypy (and remove many "type: ignore" comments)
Diffstat (limited to 'sphinx/ext/autodoc/__init__.py')
-rw-r--r--sphinx/ext/autodoc/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py
index 5a5795433..578c1d968 100644
--- a/sphinx/ext/autodoc/__init__.py
+++ b/sphinx/ext/autodoc/__init__.py
@@ -315,7 +315,7 @@ class Documenter:
modname = None
parents = []
- self.modname, self.objpath = self.resolve_name(modname, parents, path, base) # type: ignore # NOQA
+ self.modname, self.objpath = self.resolve_name(modname, parents, path, base)
if not self.modname:
return False
@@ -905,7 +905,7 @@ class ClassLevelDocumenter(Documenter):
# ... if still None, there's no way to know
if mod_cls is None:
return None, []
- modname, cls = rpartition(mod_cls, '.') # type: ignore
+ modname, cls = rpartition(mod_cls, '.')
parents = [cls]
# if the module name is still missing, get it like above
if not modname:
@@ -953,7 +953,7 @@ class DocstringSignatureMixin:
result = args, retann
# don't look any further
break
- return result # type: ignore
+ return result
def get_doc(self, encoding=None, ignore=1):
# type: (unicode, int) -> List[List[unicode]]