Skip to content

Commit

Permalink
Fix TaskDecorator type hints (#21881)
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr authored Mar 1, 2022
1 parent 3035d3a commit 5befc7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/decorators/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# necessarily exist at run time. See "Creating Custom @task Decorators"
# documentation for more details.

from typing import Any, Dict, Iterable, List, Mapping, Optional, Union, overload
from typing import Any, Callable, Dict, Iterable, List, Mapping, Optional, Union, overload

from airflow.decorators.base import Function, Task, TaskDecorator
from airflow.decorators.branch_python import branch_task
Expand Down
2 changes: 1 addition & 1 deletion airflow/decorators/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ def __call__(self, python_callable: Function) -> Task[Function]:
def __call__(
self,
*,
multiple_outputs: Optional[bool],
multiple_outputs: Optional[bool] = None,
**kwargs: Any,
) -> Callable[[Function], Task[Function]]:
"""For the decorator factory ``@task()`` case."""
Expand Down

0 comments on commit 5befc7f

Please sign in to comment.