@@ -193,7 +193,7 @@ def as_num(self) -> "DelayedArray":
193193 return self ._future
194194
195195 def as_obj (self , obj ):
196- from ..MatlabClass import MatlabClass
196+ from .. import MatlabClass
197197 if (
198198 self ._future is not None and
199199 not isinstance (self ._future , MatlabClass )
@@ -216,10 +216,12 @@ def __getattr__(self, key):
216216 return self .as_struct [key ]
217217
218218 def __setitem__ (self , index , value ):
219- from ..MatlabClass import MatlabClass
220- from ..Cell import Cell
221- from ..Array import Array
222- from ..Struct import Struct
219+ from .. import (
220+ MatlabClass ,
221+ Cell ,
222+ Array ,
223+ Struct
224+ )
223225
224226 if isinstance (index , str ):
225227 arr = self .as_struct
@@ -315,7 +317,7 @@ def __init__(self, shape, parent, *index):
315317 *index : int | str
316318 Index of the future object in its parent.
317319 """
318- from ..Struct import Struct
320+ from .. import Struct
319321 future = Struct .from_shape (shape )
320322 future ._delayed_wrapper = self
321323 super ().__init__ (future , parent , * index )
@@ -339,7 +341,7 @@ def __init__(self, shape, parent, *index):
339341 *index : int | str
340342 Index of the future object in its parent.
341343 """
342- from ..Cell import Cell
344+ from .. import Cell
343345 future = Cell .from_shape (shape )
344346 future ._delayed_wrapper = self
345347 super ().__init__ (future , parent , * index )
@@ -373,7 +375,7 @@ def __init__(self, shape, parent, *index):
373375 *index : int | str
374376 Index of the future object in its parent.
375377 """
376- from ..Array import Array
378+ from .. import Array
377379 future = Array .from_shape (shape )
378380 future ._delayed_wrapper = self
379381 super ().__init__ (future , parent , * index )
0 commit comments