Skip to content

Commit

Permalink
Fix linting issues on span.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonXZLiu committed Sep 17, 2020
1 parent 3fbed84 commit e6de321
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions opentelemetry-api/src/opentelemetry/trace/span.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ def __new__(
if trace_state is None:
trace_state = DEFAULT_TRACE_STATE

is_valid = (
trace_id != INVALID_TRACE_ID
and span_id != INVALID_SPAN_ID
)
is_valid = trace_id != INVALID_TRACE_ID and span_id != INVALID_SPAN_ID

return tuple.__new__(cls, (trace_id, span_id, is_remote, trace_flags, trace_state, is_valid))
return tuple.__new__(
cls,
(trace_id, span_id, trace_flags, trace_state, is_remote, is_valid),
)

@property
def trace_id(self) -> int:
Expand Down

0 comments on commit e6de321

Please sign in to comment.