Skip to content

Commit 75fb10c

Browse files
fix magic_underscore lists in reference pages post-2.0
1 parent b6b87a5 commit 75fb10c

File tree

2 files changed

+157
-157
lines changed

2 files changed

+157
-157
lines changed

_data/get_plotschema.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ def underscores(attr, path, section):
9898
for k in attr:
9999
if type(attr[k]) == dict and not k.endswith("src"):
100100
underscores(attr[k], path + [k], section)
101+
if attr.get("role") == "object":
102+
attr["magic_underscores"] = make_underscore(path, section, "dict(...)")
103+
else:
104+
attr["magic_underscores"] = make_underscore(path, section, "<VALUE>")
101105
else:
102106
attr["magic_underscores"] = make_underscore(path, section, "list(...)")
103-
if attr.get("role") == "object":
104-
attr["magic_underscores"] = make_underscore(path, section, "dict(...)")
105-
else:
106-
attr["magic_underscores"] = make_underscore(path, section, "<VALUE>")
107107

108108

109109
underscores(schema["layout"]["layoutAttributes"], [], "layout")

0 commit comments

Comments
 (0)