diff --git a/parso/python/tree.py b/parso/python/tree.py index 4955ee7..d0206d7 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -466,6 +466,9 @@ class ClassOrFunc(Scope): :rtype: list of :class:`Decorator` """ decorated = self.parent + if decorated.type == 'async_funcdef': + decorated = decorated.parent + if decorated.type == 'decorated': if decorated.children[0].type == 'decorators': return decorated.children[0].children