diff --git a/jedi/fast_parser.py b/jedi/fast_parser.py index 4f022a5a..36265815 100644 --- a/jedi/fast_parser.py +++ b/jedi/fast_parser.py @@ -176,6 +176,11 @@ class ParserNode(object): if set_parent: for i in items: i.parent = scope + try: + for d in i.decorators: + d.parent = scope + except AttributeError: + pass content += items if str(parser.module.name) == 'ordering': #print scope.subscopes