-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test test_import_annotations
- Loading branch information
1 parent
5baa23d
commit 3a4739b
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
from airflow.decorators import task | ||
|
||
if TYPE_CHECKING: | ||
from airflow.decorators.base import Task | ||
|
||
__all__ = [] | ||
|
||
|
||
def create_task_factory(image: str, **kwargs: "Any") -> "Task[..., Any]": # type: ignore # noqa: F821 | ||
kwargs.setdefault("multiple_outputs", False) | ||
|
||
@task.docker(image=image, auto_remove="force", **kwargs) | ||
def func(value: "dict[str, Any]") -> "Any": # type: ignore # noqa: F821 | ||
assert isinstance(value, dict) | ||
|
||
return func |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters