Skip to content

Commit df6e6ae

Browse files
committed
typing
1 parent a288834 commit df6e6ae

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ def __new__(
175175
trace_id: int,
176176
span_id: int,
177177
is_remote: bool,
178-
trace_flags: "TraceFlags" = DEFAULT_TRACE_OPTIONS,
179-
trace_state: "TraceState" = DEFAULT_TRACE_STATE,
178+
trace_flags: typing.Optional["TraceFlags"] = DEFAULT_TRACE_OPTIONS,
179+
trace_state: typing.Optional["TraceState"] = DEFAULT_TRACE_STATE,
180180
) -> "SpanContext":
181181
if trace_flags is None:
182182
trace_flags = DEFAULT_TRACE_OPTIONS

0 commit comments

Comments
 (0)