@@ -400,7 +400,6 @@ def _find_include_strings(obj: Union[IncludedOpenSCADObject, OpenSCADObject]) ->
400400 include_strings .update (_find_include_strings (child ))
401401 return include_strings
402402
403-
404403def scad_render (scad_object : OpenSCADObject , file_header : str = '' ) -> str :
405404 # Make this object the root of the tree
406405 root = scad_object
@@ -418,7 +417,6 @@ def scad_render(scad_object: OpenSCADObject, file_header: str = '') -> str:
418417
419418 return file_header + includes + scad_body
420419
421-
422420def scad_render_animated (func_to_animate : AnimFunc ,
423421 steps : int = 20 ,
424422 back_and_forth : bool = True ,
@@ -481,7 +479,6 @@ def scad_render_animated(func_to_animate: AnimFunc,
481479 f"}}\n "
482480 return rendered_string
483481
484-
485482def scad_render_animated_file (func_to_animate :AnimFunc ,
486483 steps : int = 20 ,
487484 back_and_forth : bool = True ,
@@ -553,7 +550,6 @@ def _write_code_to_file(rendered_string: str,
553550 out_path .write_text (rendered_string )
554551 return out_path .absolute ().as_posix ()
555552
556-
557553def _get_version () -> str :
558554 """
559555 Returns SolidPython version
@@ -607,7 +603,6 @@ def extract_callable_signatures(scad_file_path: PathStr) -> List[dict]:
607603 scad_code_str = Path (scad_file_path ).read_text ()
608604 return parse_scad_callables (scad_code_str )
609605
610-
611606def parse_scad_callables (scad_code_str : str ) -> List [dict ]:
612607 callables = []
613608
@@ -655,7 +650,6 @@ def parse_scad_callables(scad_code_str: str) -> List[dict]:
655650
656651 return callables
657652
658-
659653def calling_module (stack_depth : int = 2 ) -> ModuleType :
660654 """
661655 Returns the module *2* back in the frame stack. That means:
@@ -678,7 +672,6 @@ def calling_module(stack_depth: int = 2) -> ModuleType:
678672 import __main__ as calling_mod # type: ignore
679673 return calling_mod
680674
681-
682675def new_openscad_class_str (class_name : str ,
683676 args : Sequence [str ] = None ,
684677 kwargs : Sequence [str ] = None ,
@@ -731,7 +724,6 @@ def new_openscad_class_str(class_name: str,
731724
732725 return result
733726
734-
735727def _subbed_keyword (keyword : str ) -> str :
736728 """
737729 Append an underscore to any python reserved word.
@@ -744,7 +736,6 @@ def _subbed_keyword(keyword: str) -> str:
744736 f"can be accessed with `{ new_key } ` in SolidPython\n " )
745737 return new_key
746738
747-
748739def _unsubbed_keyword (subbed_keyword : str ) -> str :
749740 """
750741 Remove trailing underscore for already-subbed python reserved words.
@@ -753,11 +744,9 @@ def _unsubbed_keyword(subbed_keyword: str) -> str:
753744 shortened = subbed_keyword [:- 1 ]
754745 return shortened if shortened in PYTHON_ONLY_RESERVED_WORDS else subbed_keyword
755746
756-
757747# now that we have the base class defined, we can do a circular import
758748from . import objects
759749
760-
761750def py2openscad (o : Union [bool , float , str , Iterable ]) -> str :
762751 if type (o ) == bool :
763752 return str (o ).lower ()
@@ -780,6 +769,5 @@ def py2openscad(o: Union[bool, float, str, Iterable]) -> str:
780769 return s
781770 return str (o )
782771
783-
784772def indent (s : str ) -> str :
785773 return s .replace ("\n " , "\n \t " )
0 commit comments