mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Ref #5273: doctest: added a missing type hint
This commit is contained in:
parent
5ffc924940
commit
d52488f028
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user