@@ -1153,7 +1153,7 @@ def test_respond_with_error(self):
1153
1153
class TestBuildSpansTree (TestCase ):
1154
1154
def test_build_spans_tree_basic (self ):
1155
1155
"""Test that a simple list of spans is correctly converted to a tree."""
1156
- spans_data = [
1156
+ spans_data : list [ dict ] = [
1157
1157
{
1158
1158
"span_id" : "root-span" ,
1159
1159
"parent_span_id" : None ,
@@ -1200,7 +1200,7 @@ def test_build_spans_tree_basic(self):
1200
1200
1201
1201
def test_build_spans_tree_multiple_roots (self ):
1202
1202
"""Test that spans with multiple roots are correctly handled."""
1203
- spans_data = [
1203
+ spans_data : list [ dict ] = [
1204
1204
{
1205
1205
"span_id" : "root1" ,
1206
1206
"parent_span_id" : None ,
@@ -1243,7 +1243,7 @@ def test_build_spans_tree_multiple_roots(self):
1243
1243
1244
1244
def test_build_spans_tree_orphaned_parent (self ):
1245
1245
"""Test that spans with parent_span_id not in the data are treated as roots."""
1246
- spans_data = [
1246
+ spans_data : list [ dict ] = [
1247
1247
{
1248
1248
"span_id" : "span1" ,
1249
1249
"parent_span_id" : "non-existent-parent" ,
@@ -1274,7 +1274,7 @@ def test_build_spans_tree_empty_input(self):
1274
1274
1275
1275
def test_build_spans_tree_missing_span_ids (self ):
1276
1276
"""Test that spans without span_ids are ignored."""
1277
- spans_data = [
1277
+ spans_data : list [ dict ] = [
1278
1278
{
1279
1279
"span_id" : "valid-span" ,
1280
1280
"parent_span_id" : None ,
@@ -1305,7 +1305,7 @@ def test_build_spans_tree_missing_span_ids(self):
1305
1305
1306
1306
def test_build_spans_tree_duration_sorting (self ):
1307
1307
"""Test that spans are correctly sorted by duration."""
1308
- spans_data = [
1308
+ spans_data : list [ dict ] = [
1309
1309
{
1310
1310
"span_id" : "root" ,
1311
1311
"parent_span_id" : None ,
0 commit comments