Skip to content

Commit c3de61a

Browse files
committed
fix: use relative import for types module
Changed 'from ffi.types import' to 'from .types import' since audio_ffi.mojo is inside the ffi package. Absolute imports from within a package don't work in Mojo's module system.
1 parent 714921c commit c3de61a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ffi/audio_ffi.mojo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from math.constants import pi
2121
from memory import UnsafePointer
2222
from memory.unsafe_pointer import alloc
2323

24-
from ffi.types import (
24+
from .types import (
2525
MojoMelConfig,
2626
MojoMelSpectrogram,
2727
MOJO_AUDIO_SUCCESS,

0 commit comments

Comments
 (0)