2626 Union ,
2727)
2828
29- from ....core import FUSE_CHUNK_TYPE , CHUNK_TYPE , TILEABLE_TYPE
29+ from ....core import FuseChunk , TILEABLE_TYPE , Chunk
3030from ....typing import EntityType , TileableType , ChunkType
3131from ....utils import copy_tileables , build_fetch
3232from ...entity .tileables import handler
@@ -223,7 +223,7 @@ def _tile(
223223 chunks = []
224224 if need_process is not None :
225225 for t in need_process :
226- if isinstance (t , CHUNK_TYPE ):
226+ if isinstance (t , Chunk ):
227227 chunks .append (self ._get_data (t ))
228228 elif isinstance (t , TILEABLE_TYPE ):
229229 to_update_tileables .append (self ._get_data (t ))
@@ -304,7 +304,7 @@ def _iter(self):
304304 # so that fetch chunk can be generated.
305305 # Use chunk key as the key to make sure the copied chunk can be build to a fetch.
306306 processed_chunks = (
307- c .chunk .key if isinstance (c , FUSE_CHUNK_TYPE ) else c .key
307+ c .chunk .key if isinstance (c , FuseChunk ) else c .key
308308 for c in chunk_graph .result_chunks
309309 )
310310 self ._processed_chunks .update (processed_chunks )
@@ -406,7 +406,7 @@ def _process_node(self, entity: EntityType):
406406 if entity .key in self ._processed_chunks :
407407 if entity not in self ._chunk_to_fetch :
408408 # gen fetch
409- fetch_chunk = build_fetch (entity ). data
409+ fetch_chunk = build_fetch (entity )
410410 self ._chunk_to_fetch [entity ] = fetch_chunk
411411 return self ._chunk_to_fetch [entity ]
412412 return entity
@@ -417,7 +417,7 @@ def _select_inputs(self, inputs: List[ChunkType]):
417417 if inp .key in self ._processed_chunks :
418418 # gen fetch
419419 if inp not in self ._chunk_to_fetch :
420- fetch_chunk = build_fetch (inp ). data
420+ fetch_chunk = build_fetch (inp )
421421 self ._chunk_to_fetch [inp ] = fetch_chunk
422422 new_inputs .append (self ._chunk_to_fetch [inp ])
423423 else :
0 commit comments