19
19
from fire import testutils
20
20
21
21
22
- class NoDefaults ( object ) :
22
+ class NoDefaults :
23
23
"""A class for testing decorated functions without default values."""
24
24
25
25
@decorators .SetParseFns (count = int )
@@ -40,7 +40,7 @@ def double(count):
40
40
return 2 * count
41
41
42
42
43
- class WithDefaults ( object ) :
43
+ class WithDefaults :
44
44
45
45
@decorators .SetParseFns (float )
46
46
def example1 (self , arg1 = 10 ):
@@ -51,14 +51,14 @@ def example2(self, arg1=10):
51
51
return arg1 , type (arg1 )
52
52
53
53
54
- class MixedArguments ( object ) :
54
+ class MixedArguments :
55
55
56
56
@decorators .SetParseFns (float , arg2 = str )
57
57
def example3 (self , arg1 , arg2 ):
58
58
return arg1 , arg2
59
59
60
60
61
- class PartialParseFn ( object ) :
61
+ class PartialParseFn :
62
62
63
63
@decorators .SetParseFns (arg1 = str )
64
64
def example4 (self , arg1 , arg2 ):
@@ -69,7 +69,7 @@ def example5(self, arg1, arg2):
69
69
return arg1 , arg2
70
70
71
71
72
- class WithKwargs ( object ) :
72
+ class WithKwargs :
73
73
74
74
@decorators .SetParseFns (mode = str , count = int )
75
75
def example6 (self , ** kwargs ):
@@ -79,7 +79,7 @@ def example6(self, **kwargs):
79
79
)
80
80
81
81
82
- class WithVarArgs ( object ) :
82
+ class WithVarArgs :
83
83
84
84
@decorators .SetParseFn (str )
85
85
def example7 (self , arg1 , arg2 = None , * varargs , ** kwargs ): # pylint: disable=keyword-arg-before-vararg
0 commit comments