@@ -708,11 +708,11 @@ class Outputs:
708708 settings_version = 2
709709
710710 auto_commit = Setting (True )
711- color_var = ContextSetting (None ) # type: Optional[Variable]
711+ color_var : Optional [ Variable ] = ContextSetting (None )
712712 # filter_string = ContextSetting('')
713713
714- sorting = Setting ((0 , Qt .DescendingOrder ))
715- selected_vars = ContextSetting ([], schema_only = True )
714+ sorting : Tuple [ int , int ] = Setting ((0 , Qt .DescendingOrder ))
715+ selected_vars : List [ Variable ] = ContextSetting ([], schema_only = True )
716716
717717 def __init__ (self ):
718718 super ().__init__ ()
@@ -852,8 +852,9 @@ def commit(self):
852852
853853 # Send a table with only selected columns to output
854854 variables = self .selected_vars
855- self .info .set_output_summary (len (self .data [:, variables ]),
856- format_summary_details (self .data [:, variables ]))
855+ reduced_data = self .data [:, variables ]
856+ self .info .set_output_summary (len (reduced_data ),
857+ format_summary_details (reduced_data ))
857858 self .Outputs .reduced_data .send (self .data [:, variables ])
858859
859860 # Send the statistics of the selected variables to ouput
@@ -888,7 +889,7 @@ def migrate_context(cls, context, version):
888889 # is no suitable conversion function, and StringVariable (3)
889890 # was the only hidden var when settings_version < 2, so:
890891 if tpe != 3 ]
891- selected_vars = [all_vars [i ] for i in selected_rows ]
892+ selected_vars = [all_vars [i ] for i in selected_rows [ 0 ] ]
892893 context .values ["selected_vars" ] = selected_vars , - 3
893894
894895
0 commit comments