Skip to content

Commit 30c27e5

Browse files
committed
fix: linting
1 parent 0a37198 commit 30c27e5

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/strands/agent/agent.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def find_normalized_tool_name() -> Optional[str]:
108108
# all tools that can be represented with the normalized name
109109
if "_" in name:
110110
filtered_tools = [
111-
tool_name
112-
for (tool_name, tool) in tool_registry.items()
113-
if tool_name.replace("-", "_") == name
111+
tool_name for (tool_name, tool) in tool_registry.items() if tool_name.replace("-", "_") == name
114112
]
115113

116114
if len(filtered_tools) > 1:

src/strands/telemetry/tracer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
from opentelemetry import trace
1515
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
16-
17-
# See https://github.com/open-telemetry/opentelemetry-python/issues/4615 for the type ignore
18-
from opentelemetry.sdk.resources import Resource # type: ignore[attr-defined]
16+
from opentelemetry.sdk.resources import Resource
1917
from opentelemetry.sdk.trace import TracerProvider
2018
from opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter, SimpleSpanProcessor
2119
from opentelemetry.trace import StatusCode

0 commit comments

Comments
 (0)