You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running issues typing the ClipTextEncode response as it's a tuple[list[list[torch.Tensor, dict]]] and __qualname__ doesn't exist on the types.UnionType.
You can create a dummy type to use for the annotation.
e.g.:
class ConditioningResponse(tuple):
pass
register_type(ConditioningResponse, "CONDITIONING")
@ComfyNode()
def do_something_with_conditioning(conditioning: ConditioningResponse):
print(conditioning)
You could get fancier and make it match the characteristics of tuple[list[list[torch.Tensor, dict]]] if you want for better type hinting, but simply doing this will give EasyNodes enough info to use 'CONDITIONING' as the input type which is all that ComfyUI needs.
I'm running issues typing the ClipTextEncode response as it's a
tuple[list[list[torch.Tensor, dict]]]
and__qualname__
doesn't exist on thetypes.UnionType
.ref: https://github.com/comfyanonymous/ComfyUI/blob/6ab1e6fd4a2f7cc5945310f0ecfc11617aa9a2cb/nodes.py#L47-L67
The text was updated successfully, but these errors were encountered: