Skip to content

Conversation

@huchenlei
Copy link
Contributor

@huchenlei huchenlei commented Dec 3, 2024

Reverts #5806

Reason #5884
Resolves #5884

Context:
Some custom nodes are hacking string comparison for this wildcard types ("*"). It first started in https://github.com/pythongosssss/ComfyUI-Custom-Scripts/blob/d6657cc1f04539dbeea38d7bf6d73bc025004fa4/py/repeater.py

We should officially support the wildcard types in the core to avoid hacking like that.

@huchenlei huchenlei added the Custom Nodes Bug Bugs caused by downstream custom nodes label Dec 3, 2024
@comfyanonymous comfyanonymous merged commit bf9a90a into master Dec 3, 2024
8 checks passed
@comfyanonymous comfyanonymous deleted the revert-5806-union_types branch December 3, 2024 18:06
huchenlei pushed a commit that referenced this pull request Dec 3, 2024
webfiltered added a commit to webfiltered/ComfyUI that referenced this pull request Dec 4, 2024
comfyanonymous pushed a commit that referenced this pull request Dec 4, 2024
* Reapply "Add union link connection type support (#5806)" (#5889)

This reverts commit bf9a90a.

* Fix union type breaks existing type workarounds

* Add non-string test

* Add tests for hacks and non-string types

* Support python versions lower than 3.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Custom Nodes Bug Bugs caused by downstream custom nodes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update has messed up math nodes!

3 participants