@@ -317,6 +317,21 @@ def _resolve_source_importable_path(
317317 )
318318
319319
320+ @resolve_source .register
321+ def _resolve_source_list (
322+ source : list ,
323+ root_path : typing .Union [os .PathLike , URI ] = pathlib .Path (),
324+ output : typing .Optional [typing .Sequence [typing .Optional [os .PathLike ]]] = None ,
325+ pbar : typing .Optional [typing .Sequence ] = None ,
326+ ) -> typing .List [pathlib .Path ]:
327+ assert output is None or len (output ) == len (source )
328+ assert pbar is None or len (pbar ) == len (source )
329+ return [
330+ resolve_source (el , root_path , out , pb )
331+ for el , out , pb in zip (source , output or [None ] * len (source ), pbar or [None ] * len (source ))
332+ ]
333+
334+
320335def get_resolved_source_path (
321336 source : typing .Union [
322337 raw_nodes .URI , str , pathlib .Path , raw_nodes .ResolvedImportableSourceFile , raw_nodes .ImportableSourceFile
@@ -333,21 +348,6 @@ def get_resolved_source_path(
333348 raise NotImplementedError (type (resolved ))
334349
335350
336- @resolve_source .register
337- def _resolve_source_list (
338- source : list ,
339- root_path : typing .Union [os .PathLike , URI ] = pathlib .Path (),
340- output : typing .Optional [typing .Sequence [typing .Optional [os .PathLike ]]] = None ,
341- pbar : typing .Optional [typing .Sequence ] = None ,
342- ) -> typing .List [pathlib .Path ]:
343- assert output is None or len (output ) == len (source )
344- assert pbar is None or len (pbar ) == len (source )
345- return [
346- resolve_source (el , root_path , out , pb )
347- for el , out , pb in zip (source , output or [None ] * len (source ), pbar or [None ] * len (source ))
348- ]
349-
350-
351351def resolve_local_sources (
352352 sources : typing .Sequence [typing .Union [str , os .PathLike , raw_nodes .URI ]],
353353 root_path : os .PathLike ,
0 commit comments