Skip to content

Commit

Permalink
Fix custom node type-hinting examples (#6281)
Browse files Browse the repository at this point in the history
* Fix import in comfy_types doc / sample

* Clarify docstring
  • Loading branch information
webfiltered authored Dec 31, 2024
1 parent 02eef72 commit 67758f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion comfy/comfy_types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This module provides type hinting and concrete convenience types for node develo
If cloned to the custom_nodes directory of ComfyUI, types can be imported using:

```python
from comfy_types import IO, ComfyNodeABC, CheckLazyMixin
from comfy.comfy_types import IO, ComfyNodeABC, CheckLazyMixin

class ExampleNode(ComfyNodeABC):
@classmethod
Expand Down
6 changes: 3 additions & 3 deletions comfy/comfy_types/examples/example_nodes.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from comfy_types import IO, ComfyNodeABC, InputTypeDict
from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict
from inspect import cleandoc


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

DESCRIPTION = cleandoc(__doc__)
Expand Down

0 comments on commit 67758f5

Please sign in to comment.