@@ -432,7 +432,7 @@ def show_variables(
432432 # Print the spec with the effective open_kwargs (defaults applied) so
433433 # users see exactly what will be passed to the xarray open function.
434434 display_spec = {** spec , "open_kwargs" : effective_kwargs }
435- print (f"open_method : { display_spec !r} " )
435+ print (f"open_method: { display_spec !r} " )
436436
437437 dt = None
438438 if xarray_open == "datatree" :
@@ -441,8 +441,8 @@ def show_variables(
441441 else :
442442 ds_flat = xr .open_dataset (file_obj , ** effective_kwargs ) # type: ignore[arg-type]
443443
444- print (f"\n Dimensions : { dict (ds_flat .sizes )} " )
445- print (f"\n Variables : { list (ds_flat .data_vars )} " )
444+ print (f"\n Dimensions: { dict (ds_flat .sizes )} " )
445+ print (f"\n Variables: { list (ds_flat .data_vars )} " )
446446
447447 # Geolocation detection results.
448448 try :
@@ -476,8 +476,8 @@ def show_variables(
476476 dims_str = dict (ds_node .sizes )
477477 vars_list = list (ds_node .data_vars )
478478 print (f" { path or '/' } " )
479- print (f" Dimensions : { dims_str } " )
480- print (f" Variables : { vars_list } " )
479+ print (f" Dimensions: { dims_str } " )
480+ print (f" Variables: { vars_list } " )
481481 if hasattr (dt , "close" ):
482482 dt .close ()
483483 except AttributeError :
@@ -488,8 +488,8 @@ def show_variables(
488488 dims_str = dict (ds_node .sizes )
489489 vars_list = list (ds_node .data_vars )
490490 print (f" { path or '/' } " )
491- print (f" Dimensions : { dims_str } " )
492- print (f" Variables : { vars_list } " )
491+ print (f" Dimensions: { dims_str } " )
492+ print (f" Variables: { vars_list } " )
493493 if hasattr (dt , "close" ):
494494 dt .close ()
495495
0 commit comments