mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 02:15:17 +00:00
Fix custom node type-hinting examples (#6281)
* Fix import in comfy_types doc / sample * Clarify docstring
This commit is contained in:
parent
02eef72bf5
commit
67758f50f3
@ -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:
|
If cloned to the custom_nodes directory of ComfyUI, types can be imported using:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
from comfy_types import IO, ComfyNodeABC, CheckLazyMixin
|
from comfy.comfy_types import IO, ComfyNodeABC, CheckLazyMixin
|
||||||
|
|
||||||
class ExampleNode(ComfyNodeABC):
|
class ExampleNode(ComfyNodeABC):
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
from comfy_types import IO, ComfyNodeABC, InputTypeDict
|
from comfy.comfy_types import IO, ComfyNodeABC, InputTypeDict
|
||||||
from inspect import cleandoc
|
from inspect import cleandoc
|
||||||
|
|
||||||
|
|
||||||
class ExampleNode(ComfyNodeABC):
|
class ExampleNode(ComfyNodeABC):
|
||||||
"""An example node that just adds 1 to an input integer.
|
"""An example node that just adds 1 to an input integer.
|
||||||
|
|
||||||
* Requires an IDE configured with analysis paths etc to be worth looking at.
|
* Requires a modern IDE to provide any benefit (detail: an IDE configured with analysis paths etc).
|
||||||
* Not intended for use in ComfyUI.
|
* This node is intended as an example for developers only.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
DESCRIPTION = cleandoc(__doc__)
|
DESCRIPTION = cleandoc(__doc__)
|
||||||
|
Loading…
Reference in New Issue
Block a user