Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 60f3b05

Browse files
committed
scripts: docs: Fix config list output
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
1 parent dd8232f commit 60f3b05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/docs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def traverse_get_config(target, *args):
4141
def data_type_string(data_type, nargs=None):
4242
if nargs is not None:
4343
return "List of %ss" % (data_type_string(data_type).lower(),)
44+
elif hasattr(data_type, "SINGLETON"):
45+
return "List of %ss" % (data_type_string(data_type.SINGLETON).lower(),)
4446
if hasattr(data_type, "__func__"):
4547
return data_type_string(data_type.__func__)
4648
elif data_type is str:

0 commit comments

Comments
 (0)