ashb commented on code in PR #48683:
URL: https://github.com/apache/airflow/pull/48683#discussion_r2028533918
##########
airflow-core/src/airflow/decorators/__init__.py:
##########
@@ -81,6 +52,10 @@ def __getattr__(self, name: str) -> TaskDecorator:
raise AttributeError(f"task decorator {name!r} not found")
return decorators[name]
+ def __call__(self, *args, **kwargs):
+ """Alias '@task' to python dynamically."""
+ return self.__getattr__("python")(*args, **kwargs)
Review Comment:
Nit
```suggestion
return self.python(*args, **kwargs)
```
--
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]