Skip to content

Commit

Permalink
fix(tasks): remove deprecation warning on CodeExecutionTask.input (#1709
Browse files Browse the repository at this point in the history
)
  • Loading branch information
collindutter authored Feb 12, 2025
1 parent 57f597f commit 0427296
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions griptape/tasks/code_execution_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from griptape.artifacts import BaseArtifact, TextArtifact
from griptape.tasks.base_task import BaseTask
from griptape.utils import J2, deprecation_warn
from griptape.utils import J2

T = TypeVar("T", bound=BaseArtifact) # Return type of task

Expand All @@ -22,7 +22,6 @@ class CodeExecutionTask(BaseTask[T]):

@property
def input(self) -> TextArtifact:
deprecation_warn("CodeExecutionTask.input is deprecated and will be removed in a future release.")
if isinstance(self._input, TextArtifact):
return self._input
elif callable(self._input):
Expand Down

0 comments on commit 0427296

Please sign in to comment.