uranusjr commented on issue #23688:
URL: https://github.com/apache/airflow/issues/23688#issuecomment-1125496828
Simply search in `airflow/decorators/base.py`:
1. In class `_TaskDecorator` (the one with a leading underscore), add
```python
@property
def __wrapped__(self) -> Function:
return self.function
```
3. In class `TaskDecorator` (the one _without_ an underscore), add
```python
@property
def __wrapped__(self) -> Function:
...
```
The first class adds the actual property (so you can access this in tests),
while the other declares the interface. The second one is not strictly
necessary, but it’s good to provide it for editor autocompletion and stuff.
--
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]