@@ -449,7 +449,7 @@ def write_help_file(name, props, description, prefix, rpkg_data):
449449
450450# pylint: disable=too-many-arguments
451451def write_class_file (
452- name , props , description , project_shortname , prefix = None , rpkg_data = None
452+ name , props , description , project_shortname , prefix = None , rpkg_data = None
453453):
454454 props = reorder_props (props = props )
455455
@@ -529,14 +529,14 @@ def write_js_metadata(pkg_data, project_shortname, has_wildcards):
529529
530530# pylint: disable=R0914, R0913, R0912, R0915
531531def generate_rpkg (
532- pkg_data ,
533- rpkg_data ,
534- project_shortname ,
535- export_string ,
536- package_depends ,
537- package_imports ,
538- package_suggests ,
539- has_wildcards ,
532+ pkg_data ,
533+ rpkg_data ,
534+ project_shortname ,
535+ export_string ,
536+ package_depends ,
537+ package_imports ,
538+ package_suggests ,
539+ has_wildcards ,
540540):
541541 """Generate documents for R package creation.
542542
@@ -735,16 +735,16 @@ def format_fn_name(prefix, name):
735735
736736# pylint: disable=unused-argument
737737def generate_exports (
738- project_shortname ,
739- components ,
740- metadata ,
741- pkg_data ,
742- rpkg_data ,
743- prefix ,
744- package_depends ,
745- package_imports ,
746- package_suggests ,
747- ** kwargs
738+ project_shortname ,
739+ components ,
740+ metadata ,
741+ pkg_data ,
742+ rpkg_data ,
743+ prefix ,
744+ package_depends ,
745+ package_imports ,
746+ package_suggests ,
747+ ** kwargs
748748):
749749 export_string = make_namespace_exports (components , prefix )
750750
@@ -774,9 +774,9 @@ def make_namespace_exports(components, prefix):
774774 export_string = ""
775775 for component in components :
776776 if (
777- not component .endswith ("-*" )
778- and str (component ) not in r_keywords
779- and str (component ) not in ["setProps" , "children" ]
777+ not component .endswith ("-*" )
778+ and str (component ) not in r_keywords
779+ and str (component ) not in ["setProps" , "children" ]
780780 ):
781781 export_string += "export({}{})\n " .format (prefix , component )
782782
@@ -912,9 +912,9 @@ def get_r_type(type_object, is_flow_type=False, indent_num=0):
912912 js_type_name = type_object ["name" ]
913913 js_to_r_types = get_r_prop_types (type_object = type_object )
914914 if (
915- "computed" in type_object
916- and type_object ["computed" ]
917- or type_object .get ("type" , "" ) == "function"
915+ "computed" in type_object
916+ and type_object ["computed" ]
917+ or type_object .get ("type" , "" ) == "function"
918918 ):
919919 return ""
920920 elif js_type_name in js_to_r_types :
@@ -932,7 +932,7 @@ def print_r_type(typedata):
932932
933933# pylint: disable=too-many-arguments
934934def create_prop_docstring_r (
935- prop_name , type_object , required , description , indent_num , is_flow_type = False
935+ prop_name , type_object , required , description , indent_num , is_flow_type = False
936936):
937937 """
938938 Create the Dash component prop docstring
0 commit comments