@@ -68,7 +68,7 @@ def _disable_screen_updates(app):
6868 # unsure we can safely do this
6969 # xl_app.EnableEvents = False
7070
71- class Workbook ( object ) :
71+ class Workbook :
7272 # TODO: replace overwrite_file by mode='r'|'w'|'a' the day xlwings will support a read-only mode
7373 def __init__ (self , filepath = None , overwrite_file = False , visible = None , silent = None , app = None , load_addins = None ):
7474 global global_app
@@ -366,7 +366,7 @@ def _concrete_key(key, obj, ndim=2):
366366 return [_fill_slice (k , length ) if isinstance (k , slice ) else k
367367 for k , length in zip (key , shape )]
368368
369- class Sheet ( object ) :
369+ class Sheet :
370370 def __init__ (self , workbook , key , xw_sheet = None ):
371371 if xw_sheet is None :
372372 xw_sheet = workbook .xw_wkb .sheets [key ]
@@ -508,7 +508,7 @@ def __repr__(self):
508508 xw_sheet = self .xw_sheet
509509 return f'<{ cls .__module__ } .{ cls .__name__ } [{ xw_sheet .book .name } ]{ xw_sheet .name } >'
510510
511- class Range ( object ) :
511+ class Range :
512512 def __init__ (self , sheet , * args ):
513513 xw_range = sheet .xw_sheet .range (* args )
514514
@@ -615,7 +615,7 @@ def open_excel(filepath=None, overwrite_file=False, visible=None, silent=None, a
615615 return Workbook (filepath , overwrite_file = overwrite_file , visible = visible , silent = silent , app = app ,
616616 load_addins = load_addins )
617617else :
618- class Workbook ( object ) :
618+ class Workbook :
619619 def __init__ (self , filepath = None , overwrite_file = False , visible = None , silent = None , app = None , load_addins = None ):
620620 raise Exception ("Workbook class cannot be instantiated because xlwings is not installed" )
621621
0 commit comments