Commit eb5dff0
committed
ref(test-callback-typing): Type before_send_span with public SpanJSON
Uses the SpanJSON type now exported from sentry_sdk.types by
getsentry/sentry-python#7331, replacing the dict[str, Any] placeholder
and the comment explaining why no public span type was available.
Verified with mypy against the local sentry-python checkout: SpanJSON
resolves to the real TypedDict (not Any) and invalid keys are rejected.1 parent cfd6e23 commit eb5dff0
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 25 | + | |
31 | 26 | | |
32 | 27 | | |
33 | 28 | | |
| |||
0 commit comments