datacamp/pythonwhat

add support for async function defs

Opened this issue · 0 comments

python3 allows

async def f(): pass

AFAIK this produces an AST node that is identical to FunctionDef, except it is named AsyncFunctionDef. In order to support async functions we should just need to a visitor rule named AsyncFunctionDef for every FunctionDef rule...