Skip to content

Commit afd5e4e

Browse files
rpkyleRyan Patrick Kyle
authored andcommitted
Apply WC insertion fix to .Rd also (#1234)
1 parent 64367a2 commit afd5e4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dash/development/_r_components_generation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def generate_class_string(name, props, project_shortname, prefix):
185185
props = reorder_props(props=props)
186186

187187
prop_keys = list(props.keys())
188+
prop_keys_wc = list(props.keys())
188189

189190
wildcards = ""
190191
wildcard_declaration = ""
@@ -193,8 +194,8 @@ def generate_class_string(name, props, project_shortname, prefix):
193194
default_argtext = ""
194195
accepted_wildcards = ""
195196

196-
if any(key.endswith("-*") for key in prop_keys):
197-
accepted_wildcards = get_wildcards_r(prop_keys)
197+
if any(key.endswith("-*") for key in prop_keys_wc):
198+
accepted_wildcards = get_wildcards_r(prop_keys_wc)
198199
wildcards = ", ..."
199200
wildcard_declaration = wildcard_template.format(
200201
accepted_wildcards.replace("-*", "")

0 commit comments

Comments
 (0)