Fix lint
This commit is contained in:
parent
a6885a0d41
commit
8c5b7bcd03
@ -1651,6 +1651,7 @@ class Key(BaseType):
|
||||
"""A name of a key."""
|
||||
|
||||
def from_obj(self, value):
|
||||
"""Make sure key sequences are always normalized."""
|
||||
return str(keyutils.KeySequence.parse(value))
|
||||
|
||||
def to_py(self, value):
|
||||
|
@ -537,8 +537,11 @@ class FromObjType(configtypes.BaseType):
|
||||
|
||||
"""Config type to test from_obj for List/Dict."""
|
||||
|
||||
def from_obj(self, obj):
|
||||
return int(obj)
|
||||
def from_obj(self, value):
|
||||
return int(value)
|
||||
|
||||
def to_py(self, value):
|
||||
return value
|
||||
|
||||
|
||||
class TestList:
|
||||
|
Loading…
Reference in New Issue
Block a user