Ref #5273: doctest: added a missing type hint

This commit is contained in:
Antti Kaihola 2018-08-16 14:56:53 +03:00
parent 5ffc924940
commit d52488f028

View File

@ -92,7 +92,7 @@ class TestDirective(SphinxDirective):
# type: () -> List[nodes.Node]
if 'skipif' in self.options:
condition = self.options['skipif']
context = {}
context = {} # type: Dict[str, Any]
if self.config.doctest_global_setup:
exec(self.config.doctest_global_setup, context)
should_skip = eval(condition, context)