diff --git a/jedi/evaluate.py b/jedi/evaluate.py index 0d6f1df0..8e8cc921 100644 --- a/jedi/evaluate.py +++ b/jedi/evaluate.py @@ -131,7 +131,7 @@ def get_names_of_scope(scope, position=None, star_search=True, ... def func(): ... y = None ... ''') - >>> scope = parser.scope.subscopes[0] + >>> scope = parser.module.subscopes[0] >>> scope diff --git a/jedi/parsing_representation.py b/jedi/parsing_representation.py index d51f07e2..55d4904f 100644 --- a/jedi/parsing_representation.py +++ b/jedi/parsing_representation.py @@ -22,7 +22,7 @@ The easiest way to play with this module is to use :class:`parsing.Parser`. >>> parser = Parser('import os', 'example.py') >>> submodule = parser.scope >>> submodule - + Any subclasses of :class:`Scope`, including :class:`SubModule` has attribute :attr:`imports `. This attribute has import