Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Developer Experience] Add node typing #5676

Merged
merged 5 commits into from
Dec 4, 2024
Merged

[Developer Experience] Add node typing #5676

merged 5 commits into from
Dec 4, 2024

Conversation

huchenlei
Copy link
Collaborator

Upstreams https://github.com/webfiltered/comfy_typing

This PR adds typing support for ComfyUI nodes so that node developers can have type hints from the IDE.

Some other side effects:

  • Converted comfy_types.py to a folder python module
  • Annotated CLIPTextEncode as an example

@comfyanonymous
Copy link
Owner

Test is failing, should we drop support for python 3.8 or will you fix it?

@@ -28,7 +28,7 @@ jobs:
- name: Start ComfyUI server
run: |
python main.py --cpu 2>&1 | tee console_output.log &
wait-for-it --service 127.0.0.1:8188 -t 600
wait-for-it --service 127.0.0.1:8188 -t 30
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reduce wait time from 10min to 30s to make the test fail faster.

@huchenlei
Copy link
Collaborator Author

Test is failing, should we drop support for python 3.8 or will you fix it?

Fixed

@huchenlei
Copy link
Collaborator Author

@comfyanonymous Ping on review.

@comfyanonymous comfyanonymous merged commit 4827244 into master Dec 4, 2024
6 checks passed
@comfyanonymous comfyanonymous deleted the node_typing branch December 4, 2024 20:01
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.

2 participants