diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2019-12-30 17:33:52 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 17:33:52 +0900 |
commit | 0355d57fc1159312a131b2e44acb4a0240b2de4e (patch) | |
tree | 225b6c5f9904d8699332add3cb0939fb8be68ef2 /sphinx/pycode/parser.py | |
parent | 7a4bbf372a470700a1dfd96dd57054bb96b92fd3 (diff) | |
parent | ab184ac20d82d0546c21f33d2fdfbfb324078d56 (diff) | |
download | sphinx-git-0355d57fc1159312a131b2e44acb4a0240b2de4e.tar.gz |
Merge pull request #6972 from tk0miya/refactor_type_annotation2
mypy: Enable disallow_incomplete_defs flag for type checking
Diffstat (limited to 'sphinx/pycode/parser.py')
-rw-r--r-- | sphinx/pycode/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/parser.py b/sphinx/pycode/parser.py index f3b8d1108..2c584ce1d 100644 --- a/sphinx/pycode/parser.py +++ b/sphinx/pycode/parser.py @@ -117,7 +117,7 @@ class Token: else: raise ValueError('Unknown value: %r' % other) - def match(self, *conditions) -> bool: + def match(self, *conditions: Any) -> bool: return any(self == candidate for candidate in conditions) def __repr__(self) -> str: |