From df439e4945defdb9a4ba4d93e183e68f25081e93 Mon Sep 17 00:00:00 2001 From: Alex Mazzeo Date: Fri, 19 Dec 2025 09:38:19 -0800 Subject: [PATCH 1/2] bump version to 1.21.1 --- pyproject.toml | 2 +- temporalio/service.py | 2 +- uv.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7145dff7b..6b294b3c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "temporalio" -version = "1.21.0" +version = "1.21.1" description = "Temporal.io Python SDK" authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }] requires-python = ">=3.10" diff --git a/temporalio/service.py b/temporalio/service.py index 4f9588897..465003628 100644 --- a/temporalio/service.py +++ b/temporalio/service.py @@ -23,7 +23,7 @@ import temporalio.exceptions import temporalio.runtime -__version__ = "1.21.0" +__version__ = "1.21.1" ServiceRequest = TypeVar("ServiceRequest", bound=google.protobuf.message.Message) ServiceResponse = TypeVar("ServiceResponse", bound=google.protobuf.message.Message) diff --git a/uv.lock b/uv.lock index 76ce83f28..3dd385b88 100644 --- a/uv.lock +++ b/uv.lock @@ -2919,7 +2919,7 @@ wheels = [ [[package]] name = "temporalio" -version = "1.21.0" +version = "1.21.1" source = { virtual = "." } dependencies = [ { name = "nexus-rpc" }, From a82c251f829eee06d6bc639b39505ea5bf40fb2c Mon Sep 17 00:00:00 2001 From: Tim Conley Date: Fri, 19 Dec 2025 15:28:44 -0500 Subject: [PATCH 2/2] Restrict tool type check to reject callable because of the inability to check against generic type. --- temporalio/contrib/openai_agents/_openai_runner.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/temporalio/contrib/openai_agents/_openai_runner.py b/temporalio/contrib/openai_agents/_openai_runner.py index a8065d207..7e7853fbd 100644 --- a/temporalio/contrib/openai_agents/_openai_runner.py +++ b/temporalio/contrib/openai_agents/_openai_runner.py @@ -98,9 +98,8 @@ async def run( **kwargs, ) - tool_types = typing.get_args(Tool) for t in starting_agent.tools: - if not isinstance(t, tool_types): + if callable(t): raise ValueError( "Provided tool is not a tool type. If using an activity, make sure to wrap it with openai_agents.workflow.activity_as_tool." )