Skip to content

Commit 9549e3f

Browse files
committed
Updated docstring.:
1 parent 1430658 commit 9549e3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

comfyui_to_python.py

+6
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ def get_class_info(self, class_type: str) -> Tuple[str, str, str]:
348348
def clean_variable_name(class_type: str) -> str:
349349
"""
350350
Remove any characters from variable name that could cause errors running the Python script.
351+
352+
Args:
353+
class_type (str): Class type.
354+
355+
Returns:
356+
str: Cleaned variable name with no special characters or spaces
351357
"""
352358
# Convert to lowercase and replace spaces with underscores
353359
clean_name = class_type.lower().strip().replace("-", "_").replace(" ", "_")

0 commit comments

Comments
 (0)