@@ -502,29 +502,28 @@ def run(self) -> list[docutils_nodes.Node]:
502502 _ , _ , basename = file_label .partition (":" )
503503 index_description = f"File { label } "
504504 absolute_label = repo + label
505- self .env .get_domain ('bzl' ).add_object (
506- _ObjectEntry (
507- full_id = absolute_label ,
508- display_name = absolute_label ,
509- object_type = 'obj' ,
510- search_priority = 1 ,
511- index_entry = domains .IndexEntry (
512- name = basename ,
513- subtype = _INDEX_SUBTYPE_NORMAL ,
514- docname = self .env .docname ,
515- anchor = "" ,
516- extra = "" ,
517- qualifier = "" ,
518- descr = index_description ,
519- )
520-
505+ self .env .get_domain ("bzl" ).add_object (
506+ _ObjectEntry (
507+ full_id = absolute_label ,
508+ display_name = absolute_label ,
509+ object_type = "obj" ,
510+ search_priority = 1 ,
511+ index_entry = domains .IndexEntry (
512+ name = basename ,
513+ subtype = _INDEX_SUBTYPE_NORMAL ,
514+ docname = self .env .docname ,
515+ anchor = "" ,
516+ extra = "" ,
517+ qualifier = "" ,
518+ descr = index_description ,
521519 ),
522- alt_names = [
523- # Allow xref //foo:bar.bzl
524- file_label ,
525- # Allow xref bar.bzl
526- basename ,
527- ]
520+ ),
521+ alt_names = [
522+ # Allow xref //foo:bar.bzl
523+ file_label ,
524+ # Allow xref bar.bzl
525+ basename ,
526+ ],
528527 )
529528 index_node = addnodes .index (
530529 entries = [
@@ -1522,7 +1521,7 @@ class _BzlDomain(domains.Domain):
15221521 "type" : domains .ObjType ("type" , "type" , "obj" ),
15231522 "typedef" : domains .ObjType ("typedef" , "typedef" , "type" , "obj" ),
15241523 # generic objs usually come from inventories
1525- "obj" : domains .ObjType ("object" , "obj" )
1524+ "obj" : domains .ObjType ("object" , "obj" ),
15261525 }
15271526
15281527 # This controls:
0 commit comments