Skip to content

Commit ec7f651

Browse files
authored
chore(comfy_api): replace absolute imports with relative (#11145)
1 parent 56fa7db commit ec7f651

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

comfy_api/latest/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
from comfy_api.internal import ComfyAPIBase
66
from comfy_api.internal.singleton import ProxiedSingleton
77
from comfy_api.internal.async_to_sync import create_sync_class
8-
from comfy_api.latest._input import ImageInput, AudioInput, MaskInput, LatentInput, VideoInput
9-
from comfy_api.latest._input_impl import VideoFromFile, VideoFromComponents
10-
from comfy_api.latest._util import VideoCodec, VideoContainer, VideoComponents, MESH, VOXEL
8+
from ._input import ImageInput, AudioInput, MaskInput, LatentInput, VideoInput
9+
from ._input_impl import VideoFromFile, VideoFromComponents
10+
from ._util import VideoCodec, VideoContainer, VideoComponents, MESH, VOXEL
1111
from . import _io_public as io
1212
from . import _ui_public as ui
1313
# from comfy_api.latest._resources import _RESOURCES as resources #noqa: F401
@@ -80,7 +80,7 @@ class ComfyExtension(ABC):
8080
async def on_load(self) -> None:
8181
"""
8282
Called when an extension is loaded.
83-
This should be used to initialize any global resources neeeded by the extension.
83+
This should be used to initialize any global resources needed by the extension.
8484
"""
8585

8686
@abstractmethod

comfy_api/latest/_input/video_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import Optional, Union, IO
55
import io
66
import av
7-
from comfy_api.util import VideoContainer, VideoCodec, VideoComponents
7+
from .._util import VideoContainer, VideoCodec, VideoComponents
88

99
class VideoInput(ABC):
1010
"""

comfy_api/latest/_input_impl/video_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
from av.subtitles.stream import SubtitleStream
44
from fractions import Fraction
55
from typing import Optional
6-
from comfy_api.latest._input import AudioInput, VideoInput
6+
from .._input import AudioInput, VideoInput
77
import av
88
import io
99
import json
1010
import numpy as np
1111
import math
1212
import torch
13-
from comfy_api.latest._util import VideoContainer, VideoCodec, VideoComponents
13+
from .._util import VideoContainer, VideoCodec, VideoComponents
1414

1515

1616
def container_to_output_format(container_format: str | None) -> str | None:

comfy_api/latest/_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from comfy_api.input import VideoInput
2727
from comfy_api.internal import (_ComfyNodeInternal, _NodeOutputInternal, classproperty, copy_class, first_real_override, is_class,
2828
prune_dict, shallow_clone_class)
29-
from comfy_api.latest._resources import Resources, ResourcesLocal
29+
from ._resources import Resources, ResourcesLocal
3030
from comfy_execution.graph_utils import ExecutionBlocker
3131
from ._util import MESH, VOXEL
3232

comfy_api/latest/_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# used for image preview
2424
from comfy.cli_args import args
25-
from comfy_api.latest._io import ComfyNode, FolderType, Image, _UIOutput
25+
from ._io import ComfyNode, FolderType, Image, _UIOutput
2626

2727

2828
class SavedResult(dict):

comfy_api/latest/_util/video_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from enum import Enum
44
from fractions import Fraction
55
from typing import Optional
6-
from comfy_api.latest._input import ImageInput, AudioInput
6+
from .._input import ImageInput, AudioInput
77

88
class VideoCodec(str, Enum):
99
AUTO = "auto"

0 commit comments

Comments
 (0)