initialize valid_values separately, not using base class __init__ parameter
This commit is contained in:
parent
c322130dc0
commit
c14b52f916
@ -249,9 +249,8 @@ class BadMappingSubclass(configtypes.MappingType):
|
|||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, none_ok=False):
|
def __init__(self, none_ok=False):
|
||||||
super().__init__(
|
super().__init__(none_ok)
|
||||||
none_ok,
|
self.valid_values = configtypes.ValidValues('one', 'two'))
|
||||||
valid_values = configtypes.ValidValues('one', 'two'))
|
|
||||||
|
|
||||||
|
|
||||||
class TestMappingType:
|
class TestMappingType:
|
||||||
|
Loading…
Reference in New Issue
Block a user