Skip to content

Commit e6de321

Browse files
author
JasonXZLiu
committed
Fix linting issues on span.py
1 parent 3fbed84 commit e6de321

File tree

1 file changed

+5
-5
lines changed
  • opentelemetry-api/src/opentelemetry/trace

1 file changed

+5
-5
lines changed

opentelemetry-api/src/opentelemetry/trace/span.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ def __new__(
170170
if trace_state is None:
171171
trace_state = DEFAULT_TRACE_STATE
172172

173-
is_valid = (
174-
trace_id != INVALID_TRACE_ID
175-
and span_id != INVALID_SPAN_ID
176-
)
173+
is_valid = trace_id != INVALID_TRACE_ID and span_id != INVALID_SPAN_ID
177174

178-
return tuple.__new__(cls, (trace_id, span_id, is_remote, trace_flags, trace_state, is_valid))
175+
return tuple.__new__(
176+
cls,
177+
(trace_id, span_id, trace_flags, trace_state, is_remote, is_valid),
178+
)
179179

180180
@property
181181
def trace_id(self) -> int:

0 commit comments

Comments
 (0)