Compare commits
2 commits
7fca8e9d62
...
aa774cbce9
| Author | SHA1 | Date | |
|---|---|---|---|
| aa774cbce9 | |||
| b48328d021 |
3 changed files with 8 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
|
|||
|
||||
[project]
|
||||
name = "tiramisu"
|
||||
version = "5.2.0a11"
|
||||
version = "5.2.0a12"
|
||||
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
|
||||
readme = "README.md"
|
||||
description = "an options controller tool"
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
__version__ = "5.2.0a11"
|
||||
__version__ = "5.2.0a12"
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ class DynOptionDescription(OptionDescription):
|
|||
parent: "SubConfig",
|
||||
*,
|
||||
uncalculated: bool = False,
|
||||
from_display_name: bool = False,
|
||||
) -> List[str]:
|
||||
"""get dynamic identifiers"""
|
||||
subconfig = parent.get_child(
|
||||
|
|
@ -129,11 +130,15 @@ class DynOptionDescription(OptionDescription):
|
|||
values = []
|
||||
if __debug__:
|
||||
if not isinstance(values, list):
|
||||
if not from_display_name:
|
||||
name = self.impl_get_display_name(subconfig, with_quote=True)
|
||||
else:
|
||||
name = self.impl_getname()
|
||||
raise ValueError(
|
||||
_(
|
||||
"DynOptionDescription identifiers for option {0}, is not a list ({1})"
|
||||
).format(
|
||||
self.impl_get_display_name(subconfig, with_quote=True), values
|
||||
name, values
|
||||
)
|
||||
)
|
||||
values_ = []
|
||||
|
|
|
|||
Loading…
Reference in a new issue