@@ -193,7 +193,7 @@ def as_num(self) -> "DelayedArray":
193193 return self ._future
194194
195195 def as_obj (self , obj ):
196- from .. import MatlabClass
196+ from ..matlab_class import MatlabClass
197197 if (
198198 self ._future is not None and
199199 not isinstance (self ._future , MatlabClass )
@@ -216,12 +216,10 @@ def __getattr__(self, key):
216216 return self .as_struct [key ]
217217
218218 def __setitem__ (self , index , value ):
219- from .. import (
220- MatlabClass ,
221- Cell ,
222- Array ,
223- Struct
224- )
219+ from ..matlab_class import MatlabClass
220+ from ..cell import Cell
221+ from ..struct import Struct
222+ from ..array import Array
225223
226224 if isinstance (index , str ):
227225 arr = self .as_struct
@@ -317,7 +315,7 @@ def __init__(self, shape, parent, *index):
317315 *index : int | str
318316 Index of the future object in its parent.
319317 """
320- from .. import Struct
318+ from ..struct import Struct
321319 future = Struct .from_shape (shape )
322320 future ._delayed_wrapper = self
323321 super ().__init__ (future , parent , * index )
@@ -341,7 +339,7 @@ def __init__(self, shape, parent, *index):
341339 *index : int | str
342340 Index of the future object in its parent.
343341 """
344- from .. import Cell
342+ from ..cell import Cell
345343 future = Cell .from_shape (shape )
346344 future ._delayed_wrapper = self
347345 super ().__init__ (future , parent , * index )
@@ -375,7 +373,7 @@ def __init__(self, shape, parent, *index):
375373 *index : int | str
376374 Index of the future object in its parent.
377375 """
378- from .. import Array
376+ from ..array import Array
379377 future = Array .from_shape (shape )
380378 future ._delayed_wrapper = self
381379 super ().__init__ (future , parent , * index )
0 commit comments