diff tests/test_parse_files/test_async_function_def.py @ 69:a73eaf42bea1

Add ast.AsyncDefFunction.
author Bastien Orivel <eijebong@bananium.fr>
date Mon, 13 Jun 2016 17:54:19 +0200
parents
children
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/tests/test_parse_files/test_async_function_def.py
@@ -0,0 +1,8 @@
+async def func0():
+    pass
+async def func1(a, b: str) -> None:
+    pass
+async def func2(a, *, b: composite.type, c=2, d: int=3):
+    pass
+async def func3(a, c=1, *args, b=2, **kwargs):
+    pass