Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tasks): remove deprecation warning on CodeExecutionTask.input #1709

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading