File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,12 +166,12 @@ def set_options(
166166 yield
167167 finally :
168168 # Restore old values (modify in place)
169- _options .label_use_long_name = cast (bool , old_values ["label_use_long_name" ])
170- _options .label_use_standard_name = cast (bool , old_values ["label_use_standard_name" ])
171- _options .label_include_units = cast (bool , old_values ["label_include_units" ])
172- _options .label_unit_format = cast (str , old_values ["label_unit_format" ])
173- _options .slot_orders = cast (dict [str , tuple [str , ...]], old_values ["slot_orders" ])
174- _options .dataset_variable_position = cast (int , old_values ["dataset_variable_position" ])
169+ _options .label_use_long_name = cast (" bool" , old_values ["label_use_long_name" ])
170+ _options .label_use_standard_name = cast (" bool" , old_values ["label_use_standard_name" ])
171+ _options .label_include_units = cast (" bool" , old_values ["label_include_units" ])
172+ _options .label_unit_format = cast (" str" , old_values ["label_unit_format" ])
173+ _options .slot_orders = cast (" dict[str, tuple[str, ...]]" , old_values ["slot_orders" ])
174+ _options .dataset_variable_position = cast (" int" , old_values ["dataset_variable_position" ])
175175
176176
177177def notebook (renderer : str = "notebook" ) -> None :
You can’t perform that action at this time.
0 commit comments