diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-29 23:56:30 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-30 17:22:56 +0900 |
commit | ab184ac20d82d0546c21f33d2fdfbfb324078d56 (patch) | |
tree | 225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/ext/napoleon/iterators.py | |
parent | 7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff) | |
download | sphinx-git-ab184ac20d82d0546c21f33d2fdfbfb324078d56.tar.gz |
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/ext/napoleon/iterators.py')
-rw-r--r-- | sphinx/ext/napoleon/iterators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/ext/napoleon/iterators.py b/sphinx/ext/napoleon/iterators.py index 3aa728e44..2adbd431f 100644 --- a/sphinx/ext/napoleon/iterators.py +++ b/sphinx/ext/napoleon/iterators.py @@ -47,7 +47,7 @@ class peek_iter: be set to a new object instance: ``object()``. """ - def __init__(self, *args) -> None: + def __init__(self, *args: Any) -> None: """__init__(o, sentinel=None)""" self._iterable = iter(*args) # type: Iterable self._cache = collections.deque() # type: collections.deque @@ -208,7 +208,7 @@ class modify_iter(peek_iter): "whitespace." """ - def __init__(self, *args, **kwargs) -> None: + def __init__(self, *args: Any, **kwargs: Any) -> None: """__init__(o, sentinel=None, modifier=lambda x: x)""" if 'modifier' in kwargs: self.modifier = kwargs['modifier'] |