Skip to content

Commit 00ea2a2

Browse files
committed
Typing
1 parent 6ce8b40 commit 00ea2a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/sentry/seer/test_autofix.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ def test_respond_with_error(self):
11531153
class TestBuildSpansTree(TestCase):
11541154
def test_build_spans_tree_basic(self):
11551155
"""Test that a simple list of spans is correctly converted to a tree."""
1156-
spans_data = [
1156+
spans_data: list[dict] = [
11571157
{
11581158
"span_id": "root-span",
11591159
"parent_span_id": None,
@@ -1200,7 +1200,7 @@ def test_build_spans_tree_basic(self):
12001200

12011201
def test_build_spans_tree_multiple_roots(self):
12021202
"""Test that spans with multiple roots are correctly handled."""
1203-
spans_data = [
1203+
spans_data: list[dict] = [
12041204
{
12051205
"span_id": "root1",
12061206
"parent_span_id": None,
@@ -1243,7 +1243,7 @@ def test_build_spans_tree_multiple_roots(self):
12431243

12441244
def test_build_spans_tree_orphaned_parent(self):
12451245
"""Test that spans with parent_span_id not in the data are treated as roots."""
1246-
spans_data = [
1246+
spans_data: list[dict] = [
12471247
{
12481248
"span_id": "span1",
12491249
"parent_span_id": "non-existent-parent",
@@ -1274,7 +1274,7 @@ def test_build_spans_tree_empty_input(self):
12741274

12751275
def test_build_spans_tree_missing_span_ids(self):
12761276
"""Test that spans without span_ids are ignored."""
1277-
spans_data = [
1277+
spans_data: list[dict] = [
12781278
{
12791279
"span_id": "valid-span",
12801280
"parent_span_id": None,
@@ -1305,7 +1305,7 @@ def test_build_spans_tree_missing_span_ids(self):
13051305

13061306
def test_build_spans_tree_duration_sorting(self):
13071307
"""Test that spans are correctly sorted by duration."""
1308-
spans_data = [
1308+
spans_data: list[dict] = [
13091309
{
13101310
"span_id": "root",
13111311
"parent_span_id": None,

0 commit comments

Comments
 (0)