Skip to content

Commit 1aecf4f

Browse files
committed
linting
1 parent 82e8a02 commit 1aecf4f

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

sentry_sdk/integrations/openai_agents/patches/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def _create_get_model_wrapper(original_get_model):
2222
Wraps the agents.Runner._get_model method to wrap the get_response method of the model to create a AI client span.
2323
"""
2424

25-
@classmethod
2625
@wraps(original_get_model)
2726
def wrapped_get_model(cls, agent, run_config):
2827
# type: (agents.Runner, agents.Agent, agents.RunConfig) -> agents.Model

sentry_sdk/integrations/openai_agents/patches/runner.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def _create_run_wrapper(original_func):
2525
"""
2626
is_async = asyncio.iscoroutinefunction(original_func)
2727

28-
@classmethod
2928
@wraps(original_func)
3029
async def async_wrapper(cls, *args, **kwargs):
3130
# type: (agents.Runner, *Any, **Any) -> Any
@@ -37,7 +36,6 @@ async def async_wrapper(cls, *args, **kwargs):
3736

3837
return result
3938

40-
@classmethod
4139
@wraps(original_func)
4240
def sync_wrapper(cls, *args, **kwargs):
4341
# type: (agents.Runner, *Any, **Any) -> Any

sentry_sdk/integrations/openai_agents/patches/tools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def _create_get_all_tools_wrapper(original_get_all_tools):
2121
Wraps the agents.Runner._get_all_tools method of the Runner class to wrap all function tools with Sentry instrumentation.
2222
"""
2323

24-
@classmethod
2524
@wraps(original_get_all_tools)
2625
async def wrapped_get_all_tools(cls, agent, context_wrapper):
2726
# type: (agents.Runner, agents.Agent, agents.RunContextWrapper) -> list[agents.Tool]

sentry_sdk/integrations/openai_agents/run_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
raise DidNotEnable("OpenAI Agents not installed")
1616

1717

18-
class SentryRunHooks(agents.RunHooks):
18+
class SentryRunHooks(agents.RunHooks): # type: ignore[misc]
1919
async def on_agent_start(self, context, agent):
2020
# type: (agents.RunContextWrapper, agents.Agent) -> None
2121
invoke_agent_span(context, agent)

0 commit comments

Comments
 (0)