get_type not exists for optiondescription, change it to impl_get_group_type
This commit is contained in:
parent
280d2ebd0a
commit
ba5cc57166
|
@ -159,7 +159,7 @@ class _TiramisuOptionOptionDescription(CommonTiramisuOption):
|
|||
return self._option_bag.option
|
||||
|
||||
def type(self):
|
||||
return self._option_bag.option.get_type()
|
||||
return self._option_bag.option.impl_get_group_type()
|
||||
|
||||
def isleadership(self):
|
||||
"""Test if option is a leader or a follower"""
|
||||
|
@ -289,6 +289,9 @@ class _TiramisuOptionOption(_TiramisuOptionOptionDescription):
|
|||
option = self._option_bag.option
|
||||
return option.impl_get_validator()
|
||||
|
||||
def type(self):
|
||||
return self._option_bag.option.get_type()
|
||||
|
||||
def pattern(self) -> str:
|
||||
option = self._option_bag.option
|
||||
type = option.get_type()
|
||||
|
@ -1563,7 +1566,7 @@ class Config(TiramisuAPI):
|
|||
class MetaConfig(TiramisuAPI):
|
||||
"""MetaConfig object that enables us to handle the sub configuration's options"""
|
||||
def __init__(self,
|
||||
children,
|
||||
children: 'Config'=[],
|
||||
session_id: Union[str, None]=None,
|
||||
persistent: bool=False,
|
||||
optiondescription: Optional[OptionDescription]=None,
|
||||
|
|
Loading…
Reference in New Issue