From 82d69ca2111ded609adda90bc304898902a3a740 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 20 Jul 2017 17:38:34 +0200 Subject: [PATCH] Add a comment about using async funcdefs. --- parso/python/normalizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parso/python/normalizer.py b/parso/python/normalizer.py index f2eb3b1..95e35eb 100644 --- a/parso/python/normalizer.py +++ b/parso/python/normalizer.py @@ -25,6 +25,8 @@ class Context(object): self.parent_context = parent_context def is_async_funcdef(self): + # Stupidly enough async funcdefs can have two different forms, + # depending if a decorator is used or not. return self.node.type == 'funcdef' \ and self.node.parent.type in ('async_funcdef', 'async_stmt')