ashb commented on pull request #12569:
URL: https://github.com/apache/airflow/pull/12569#issuecomment-734926663
```
def make_op():
a = 1
@task
def my_func():
return a+1
return my_func
```
That won't work. Parsing and re-evaluating a string is _very_ error prone
and will fail in all sorts of cases.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]