Skip to content

Commit 67758f5

Browse files
authored
Fix custom node type-hinting examples (comfyanonymous#6281)
* Fix import in comfy_types doc / sample * Clarify docstring
1 parent 02eef72 commit 67758f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

comfy/comfy_types/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This module provides type hinting and concrete convenience types for node develo
55
If cloned to the custom_nodes directory of ComfyUI, types can be imported using:
66

77
```python
8-
from comfy_types import IO, ComfyNodeABC, CheckLazyMixin
8+
from comfy.comfy_types import IO, ComfyNodeABC, CheckLazyMixin
99

1010
class ExampleNode(ComfyNodeABC):
1111
@classmethod

comfy/comfy_types/examples/example_nodes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
from comfy_types import IO, ComfyNodeABC, InputTypeDict
1+
from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict
22
from inspect import cleandoc
33

44

55
class ExampleNode(ComfyNodeABC):
66
"""An example node that just adds 1 to an input integer.
77
8-
* Requires an IDE configured with analysis paths etc to be worth looking at.
9-
* Not intended for use in ComfyUI.
8+
* Requires a modern IDE to provide any benefit (detail: an IDE configured with analysis paths etc).
9+
* This node is intended as an example for developers only.
1010
"""
1111

1212
DESCRIPTION = cleandoc(__doc__)

0 commit comments

Comments
 (0)