Skip to content

Commit eb86407

Browse files
committed
Lint
1 parent 0475d0c commit eb86407

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

temporalio/contrib/openai_agents/_openai_runner.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,20 @@ async def run(
5656
)
5757

5858
if starting_agent.mcp_servers:
59-
from temporalio.contrib.openai_agents import (StatelessTemporalMCPServer, StatefulTemporalMCPServer)
59+
from temporalio.contrib.openai_agents import (
60+
StatefulTemporalMCPServer,
61+
StatelessTemporalMCPServer,
62+
)
63+
6064
for s in starting_agent.mcp_servers:
61-
if not isinstance(s, (StatelessTemporalMCPServer, StatefulTemporalMCPServer)):
62-
warnings.warn("Unknown mcp_server type {} may not work durably.".format(type(s)))
65+
if not isinstance(
66+
s, (StatelessTemporalMCPServer, StatefulTemporalMCPServer)
67+
):
68+
warnings.warn(
69+
"Unknown mcp_server type {} may not work durably.".format(
70+
type(s)
71+
)
72+
)
6373

6474
# workaround for https://github.com/pydantic/pydantic/issues/9541
6575
# ValidatorIterator returned

temporalio/contrib/openai_agents/_temporal_openai_agents.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,6 @@ def __init__(
267267
self._model_provider = model_provider
268268
self._mcp_servers = mcp_servers
269269

270-
271270
def init_client_plugin(self, next: temporalio.client.Plugin) -> None:
272271
"""Set the next client plugin"""
273272
self.next_client_plugin = next

0 commit comments

Comments
 (0)