Skip to content

Commit 3f46893

Browse files
Fix lint errors and remove trailing whitespace
1 parent 0b5a7de commit 3f46893

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/agents/tracing/processor_interface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ def __init__(self):
2222
2323
def on_trace_start(self, trace):
2424
self.active_traces[trace.trace_id] = trace
25-
25+
2626
def on_trace_end(self, trace):
2727
# Process completed trace
2828
del self.active_traces[trace.trace_id]
29-
29+
3030
def on_span_start(self, span):
3131
self.active_spans[span.span_id] = span
32-
32+
3333
def on_span_end(self, span):
3434
# Process completed span
3535
del self.active_spans[span.span_id]
@@ -86,7 +86,7 @@ def on_span_start(self, span: "Span[Any]") -> None:
8686
span: The span that started. Contains operation details and context.
8787
8888
Notes:
89-
- Called synchronously on span start
89+
- Called synchronously on span start
9090
- Should return quickly to avoid blocking execution
9191
- Spans are automatically nested under current trace/span
9292
"""

src/agents/tracing/spans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class NoOpSpan(Span[TSpanData]):
180180
Args:
181181
span_data: The operation-specific data for this span.
182182
"""
183-
183+
184184
__slots__ = ("_span_data", "_prev_span_token")
185185

186186
def __init__(self, span_data: TSpanData):

src/agents/tracing/traces.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
class Trace(abc.ABC):
1414
"""A complete end-to-end workflow containing related spans and metadata.
1515
16-
A trace represents a logical workflow or operation (e.g., "Customer Service Query"
17-
or "Code Generation") and contains all the spans (individual operations) that occur
16+
A trace represents a logical workflow or operation (e.g., "Customer Service Query"
17+
or "Code Generation") and contains all the spans (individual operations) that occur
1818
during that workflow.
1919
2020
Example:
@@ -127,7 +127,7 @@ def export(self) -> dict[str, Any] | None:
127127

128128
class NoOpTrace(Trace):
129129
"""A no-op implementation of Trace that doesn't record any data.
130-
130+
131131
Used when tracing is disabled but trace operations still need to work.
132132
Maintains proper context management but doesn't store or export any data.
133133

0 commit comments

Comments
 (0)