uranusjr commented on code in PR #22562:
URL: https://github.com/apache/airflow/pull/22562#discussion_r1005274709
##########
airflow/decorators/__init__.pyi:
##########
@@ -410,5 +412,12 @@ class TaskDecoratorCollection:
of the target ConfigMap's Data field will represent the key-value
pairs as environment variables. Extends env_from.
"""
+ @overload
+ def sensor(self, **kwargs) -> TaskDecorator:
+ """
+ Wraps a Python function into a sensor operator.
+ """
Review Comment:
Can you list out more arguments and the docstring explicitly (like other
functions above)? This is shown in editor autocomplete, and the current format
is not useful.
--
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]