Get doctest completions working, fixes #860
This commit is contained in:
1 parent
8914bbbcc3
commit
50c5eb5786
5 files changed
+99
-10
No files matched your search
@@ -468,7 +468,7 @@ def get_global_filters(context, until_position, origin_scope):
|
||||
until_position=until_position,
|
||||
origin_scope=origin_scope):
|
||||
yield filter
|
||||
if isinstance(context, BaseFunctionExecutionContext):
|
||||
if isinstance(context, (BaseFunctionExecutionContext, ModuleContext)):
|
||||
# The position should be reset if the current scope is a function.
|
||||
until_position = None
|
||||
|
||||
|
||||
Reference in new issue
Block a user