Skip to content

Commit c459454

Browse files
committed
old style type hints
1 parent 5e286ed commit c459454

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sentry_sdk/integrations/opentelemetry/sampler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def get_parent_sample_rate(parent_context, trace_id):
6767
return None
6868

6969

70-
def _update_sample_rate(sample_rate: float, trace_state: TraceState) -> TraceState:
70+
def _update_sample_rate(sample_rate, trace_state):
71+
# type: (float, TraceState) -> TraceState
7172
if TRACESTATE_SAMPLE_RATE_KEY in trace_state:
7273
trace_state = trace_state.update(TRACESTATE_SAMPLE_RATE_KEY, str(sample_rate))
7374
else:

0 commit comments

Comments
 (0)