Skip to content

Commit

Permalink
Apply WC insertion fix to .Rd also (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkyle authored May 7, 2020
1 parent 5b329f4 commit 439e13b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dash/development/_r_components_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def generate_class_string(name, props, project_shortname, prefix):
props = reorder_props(props=props)

prop_keys = list(props.keys())
prop_keys_wc = list(props.keys())

wildcards = ""
wildcard_declaration = ""
Expand All @@ -193,8 +194,8 @@ def generate_class_string(name, props, project_shortname, prefix):
default_argtext = ""
accepted_wildcards = ""

if any(key.endswith("-*") for key in prop_keys):
accepted_wildcards = get_wildcards_r(prop_keys)
if any(key.endswith("-*") for key in prop_keys_wc):
accepted_wildcards = get_wildcards_r(prop_keys_wc)
wildcards = ", ..."
wildcard_declaration = wildcard_template.format(
accepted_wildcards.replace("-*", "")
Expand Down

0 comments on commit 439e13b

Please sign in to comment.