ComfyUI
ComfyUI copied to clipboard
Add type hints to main.py and server.py
This PR adds type hints to function declarations and some variables in main.py and server.py to improve the development experience.
(Automated Bot Message) CI Tests are running, you can view the results at https://ci.comfy.org/?branch=4374%2Fmerge
For ease of review & merge, could you please separate these? No more than one file at a time to have this type of bulk formatting
Especially since these are such core files being edited, by the time a review can happen, fresh merge conflicts inevitably appear, so it needs to be kept small at a time to dodge that