mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #135] fix: use typing.List in na3d signature for PyTorch custom_op compatib… #166
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-kitchen/pull/135
Author: @itzero-ru
Created: 8/24/2026
Status: 🔄 Open
Base:
main← Head:fix-pytorch-schema-typing📝 Commits (1)
dc9bd5dfix: use typing.List in na3d signature for PyTorch custom_op compatibility📊 Changes
1 file changed (+6 additions, -4 deletions)
View changed files
📝
comfy_kitchen/backends/eager/na.py(+6 -4)📄 Description
…ility
Description
Fixes a
ValueErrorduring startup when registeringcomfy_kitchen::na3dwith@torch.library.custom_op.PyTorch's
infer_schemacurrently does not support the built-inlist[int]andlist[bool]type hints and explicitly requirestyping.List. This PR updates the signature inbackends/eager/na.pyto usetyping.Listto restore compatibility.Error Traceback:
ValueError: infer_schema(func): Parameter kernel_size has unsupported type list[int]. The valid types are: ... typing.List[int] ...🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.