We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError
from makefun import create_function async def my_native_coroutine_handler(sleep_time): await sleep(sleep_time) return sleep_time create_function("foo_returns_bar(sleep_time=2)", my_native_coroutine_handler)
raises
filename = '<makefun-gen-%d>' % (next(_compile_count),) try: > code = compile(body, filename, 'single') E File "<makefun-gen-11>", line 1 E async def foo_return awaits_bar(sleep_time=2): E ^ E SyntaxError: invalid syntax ..\src\makefun\main.py:714: SyntaxError
The text was updated successfully, but these errors were encountered:
Fixed SyntaxError happening when the name of a native coroutine fun…
221064d
…ction to create contains `'return'`. Fixes #96
'return'
Successfully merging a pull request may close this issue.
raises
The text was updated successfully, but these errors were encountered: