Skip to content

Commit

Permalink
Update base_task
Browse files Browse the repository at this point in the history
  • Loading branch information
goFrendiAsgard committed Nov 30, 2024
1 parent 165a6c6 commit 2a00378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zrb/task/base_task.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import os
from collections.abc import Callable
from typing import Any
from typing import Any, Self

from zrb.attr.type import BoolAttr, fstring
from zrb.context.any_context import AnyContext
Expand Down Expand Up @@ -75,7 +75,7 @@ def __rshift__(self, other: AnyTask | list[AnyTask]) -> AnyTask:
except Exception as e:
raise ValueError(f"Invalid operation {self} >> {other}: {e}")

def __lshift__(self, other: AnyTask | list[AnyTask]) -> AnyTask:
def __lshift__(self, other: AnyTask | list[AnyTask]) -> Self:
try:
self.append_upstream(other)
return self
Expand Down

0 comments on commit 2a00378

Please sign in to comment.