This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 7b0fc01a97 Fix task.sensor annotation in type stub (#31954)
7b0fc01a97 is described below
commit 7b0fc01a973d508963ef181705ef978c1452c88a
Author: Tzu-ping Chung <[email protected]>
AuthorDate: Fri Jun 16 18:57:27 2023 +0800
Fix task.sensor annotation in type stub (#31954)
---
airflow/decorators/__init__.pyi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/decorators/__init__.pyi b/airflow/decorators/__init__.pyi
index fec6980041..92fa4dda5b 100644
--- a/airflow/decorators/__init__.pyi
+++ b/airflow/decorators/__init__.pyi
@@ -453,7 +453,7 @@ class TaskDecoratorCollection:
:param max_wait: maximum wait interval between pokes, can be
``timedelta`` or ``float`` seconds
"""
@overload
- def sensor(self, python_callable: FParams | FReturn | None = None) ->
Task[FParams, FReturn]: ...
+ def sensor(self, python_callable: Callable[FParams, FReturn] | None =
None) -> Task[FParams, FReturn]: ...
task: TaskDecoratorCollection
setup: Callable