Skip to content

Commit

Permalink
update functionfuture as well
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonFZ committed Dec 16, 2024
1 parent 65631fe commit b072777
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions znflow/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,3 +474,23 @@ def __iter__(self):
return resolve(self).__iter__()
except AttributeError:
raise TypeError(f"'{self}' object is not iterable")

def extend(self, *args) -> None:
"""
Raises
------
TypeError
If the method is called.
"""
raise TypeError(
"FunctionFuture can not be extended. Use 'self += other' instead."
)

def append(self, *args) -> None:
"""
Raises
------
TypeError
If the method is called.
"""
raise TypeError("FunctionFuture can not be appended.")

0 comments on commit b072777

Please sign in to comment.