Skip to content

Comments

A static method was added to validate the names of keyword parameters, to ensure that the generated kwargs are valid Python identifiers and not actual keywords. The method for generating workflows was also updated to filter out invalid kwargs.#135

Open
DaydreamCoding wants to merge 1 commit intopydn:mainfrom
DaydreamCoding:patch-1

Conversation

@DaydreamCoding
Copy link

Fixed

"ComfyUI-to-Python-Extension/comfyui_to_python.py", line 414, in assemble_python_code
+ f"{custom_nodes}with torch.inference_mode():\n\t\t" File "src/black/init.py", line 1212, in format_str File "src/black/init.py", line 1235, in _format_str_once File "src/black/parsing.py", line 98, in lib2to3_parse black.parsing.InvalidInput: Cannot parse:

Fixed 

"ComfyUI-to-Python-Extension/comfyui_to_python.py", line 414, in assemble_python_code
    + f"{custom_nodes}with torch.inference_mode():\n\t\t"
  File "src/black/__init__.py", line 1212, in format_str
  File "src/black/__init__.py", line 1235, in _format_str_once
  File "src/black/parsing.py", line 98, in lib2to3_parse
black.parsing.InvalidInput: Cannot parse:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant