From 402e7823e105e07adf9b82246379a572f49eeaa6 Mon Sep 17 00:00:00 2001 From: gofrendi Date: Fri, 22 Nov 2024 15:29:36 +0700 Subject: [PATCH] Update anotations --- src/zrb/task/base_task.py | 4 ++-- src/zrb/task/base_trigger.py | 4 ++-- src/zrb/task/cmd_task.py | 4 ++-- src/zrb/task/make_task.py | 4 ++-- src/zrb/task/scheduler.py | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/zrb/task/base_task.py b/src/zrb/task/base_task.py index 3c733b22..24441dc5 100644 --- a/src/zrb/task/base_task.py +++ b/src/zrb/task/base_task.py @@ -24,8 +24,8 @@ def __init__( icon: str | None = None, description: str | None = None, cli_only: bool = False, - input: list[AnyInput] | AnyInput | None = None, - env: list[AnyEnv] | AnyEnv | None = None, + input: list[AnyInput | None] | AnyInput | None = None, + env: list[AnyEnv | None] | AnyEnv | None = None, action: fstring | Callable[[AnyContext], Any] | None = None, execute_condition: BoolAttr = True, retries: int = 2, diff --git a/src/zrb/task/base_trigger.py b/src/zrb/task/base_trigger.py index 5db805ee..cacf0564 100644 --- a/src/zrb/task/base_trigger.py +++ b/src/zrb/task/base_trigger.py @@ -27,8 +27,8 @@ def __init__( icon: str | None = None, description: str | None = None, cli_only: bool = False, - input: list[AnyInput] | AnyInput | None = None, - env: list[AnyEnv] | AnyEnv | None = None, + input: list[AnyInput | None] | AnyInput | None = None, + env: list[AnyEnv | None] | AnyEnv | None = None, action: fstring | Callable[[AnyContext], Any] | None = None, execute_condition: bool | str | Callable[[AnySharedContext], bool] = True, queue_name: fstring | None = None, diff --git a/src/zrb/task/cmd_task.py b/src/zrb/task/cmd_task.py index f80358ef..a85c54d1 100644 --- a/src/zrb/task/cmd_task.py +++ b/src/zrb/task/cmd_task.py @@ -23,8 +23,8 @@ def __init__( icon: str | None = None, description: str | None = None, cli_only: bool = False, - input: list[AnyInput] | AnyInput | None = None, - env: list[AnyEnv] | AnyEnv | None = None, + input: list[AnyInput | None] | AnyInput | None = None, + env: list[AnyEnv | None] | AnyEnv | None = None, shell: StrAttr | None = None, auto_render_shell: bool = True, shell_flag: StrAttr | None = None, diff --git a/src/zrb/task/make_task.py b/src/zrb/task/make_task.py index 6c3d8ba1..a6d7809f 100644 --- a/src/zrb/task/make_task.py +++ b/src/zrb/task/make_task.py @@ -16,8 +16,8 @@ def make_task( icon: str | None = None, description: str | None = None, cli_only: bool = False, - input: list[AnyInput] | AnyInput | None = None, - env: list[AnyEnv] | AnyEnv | None = None, + input: list[AnyInput | None] | AnyInput | None = None, + env: list[AnyEnv | None] | AnyEnv | None = None, execute_condition: bool | str | Callable[[AnySharedContext], bool] = True, retries: int = 2, retry_period: float = 0, diff --git a/src/zrb/task/scheduler.py b/src/zrb/task/scheduler.py index a808daf2..cbb4b0f5 100644 --- a/src/zrb/task/scheduler.py +++ b/src/zrb/task/scheduler.py @@ -24,8 +24,8 @@ def __init__( icon: str | None = None, description: str | None = None, cli_only: bool = False, - input: list[AnyInput] | AnyInput | None = None, - env: list[AnyEnv] | AnyEnv | None = None, + input: list[AnyInput | None] | AnyInput | None = None, + env: list[AnyEnv | None] | AnyEnv | None = None, schedule: StrAttr = None, execute_condition: bool | str | Callable[[AnySharedContext], bool] = True, queue_name: fstring | None = None,