1919from fire import testutils
2020
2121
22- class NoDefaults ( object ) :
22+ class NoDefaults :
2323 """A class for testing decorated functions without default values."""
2424
2525 @decorators .SetParseFns (count = int )
@@ -40,7 +40,7 @@ def double(count):
4040 return 2 * count
4141
4242
43- class WithDefaults ( object ) :
43+ class WithDefaults :
4444
4545 @decorators .SetParseFns (float )
4646 def example1 (self , arg1 = 10 ):
@@ -51,14 +51,14 @@ def example2(self, arg1=10):
5151 return arg1 , type (arg1 )
5252
5353
54- class MixedArguments ( object ) :
54+ class MixedArguments :
5555
5656 @decorators .SetParseFns (float , arg2 = str )
5757 def example3 (self , arg1 , arg2 ):
5858 return arg1 , arg2
5959
6060
61- class PartialParseFn ( object ) :
61+ class PartialParseFn :
6262
6363 @decorators .SetParseFns (arg1 = str )
6464 def example4 (self , arg1 , arg2 ):
@@ -69,7 +69,7 @@ def example5(self, arg1, arg2):
6969 return arg1 , arg2
7070
7171
72- class WithKwargs ( object ) :
72+ class WithKwargs :
7373
7474 @decorators .SetParseFns (mode = str , count = int )
7575 def example6 (self , ** kwargs ):
@@ -79,7 +79,7 @@ def example6(self, **kwargs):
7979 )
8080
8181
82- class WithVarArgs ( object ) :
82+ class WithVarArgs :
8383
8484 @decorators .SetParseFn (str )
8585 def example7 (self , arg1 , arg2 = None , * varargs , ** kwargs ): # pylint: disable=keyword-arg-before-vararg
0 commit comments