ashb commented on PR #57782:
URL: https://github.com/apache/airflow/pull/57782#issuecomment-3490403983

   Here's an idea out of left field: don't do any pre-processing or removing at 
all, but instead put this in the generated script:
   
   ```
   from types import SimpleNamespace
   task = SimpleNamespace(kubernetes=lambda f: f)
   ```
   
   Then we could leave it in the script as:
   
   ```python
   @task.kubernetes
   def my_fn(...): ...
   
   # ...
   
   try:
     my_fn(...)
     ...
   ```
   
   That way we _might_ not need to a) use cst to strip the decorator, nor worry 
about dedenting anything?


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to