Handle spawned attrs with dict, as per #1787

This commit is contained in:
Griatch 2019-06-09 18:03:53 +02:00
parent e9df197385
commit 5f8e08ecaf
2 changed files with 8 additions and 8 deletions

View file

@ -106,7 +106,7 @@ def _format_option_value(prop, required=False, prototype=None, cropper=None):
if utils.is_iter(prop):
out = ", ".join(str(pr) for pr in prop)
if not out and required:
out = "|rreqrd"
out = "|runset"
if out:
return " ({}|n)".format(cropper(out) if cropper else utils.crop(out, _MENU_CROP_WIDTH))
return ""