@@ -529,7 +529,7 @@ def wrapper(
529
529
* args : _Target_P .args ,
530
530
** kwargs : _Target_P .kwargs ,
531
531
) -> List [_Target_T ]:
532
- computed : List [Data_Out ] = []
532
+ computed : List [_Target_T ] = []
533
533
534
534
i = 0
535
535
for data_entry in data_chunk :
@@ -547,7 +547,7 @@ def wrapper(
547
547
return wrapper
548
548
549
549
@property
550
- def results (self ) -> List [_Dataset_T ]:
550
+ def results (self ) -> List [_Target_T ]:
551
551
"""
552
552
The return value of the threads if completed
553
553
@@ -560,7 +560,7 @@ def results(self) -> List[_Dataset_T]:
560
560
if len (self ._threads ) == 0 :
561
561
raise exceptions .ThreadNotInitializedError ()
562
562
563
- results : List [Data_Out ] = []
563
+ results : List [_Target_T ] = []
564
564
for entry in self ._threads :
565
565
results += entry .thread .result
566
566
return results
@@ -577,15 +577,15 @@ def is_alive(self) -> bool:
577
577
raise exceptions .ThreadNotInitializedError ()
578
578
return any (entry .thread .is_alive () for entry in self ._threads )
579
579
580
- def get_return_values (self ) -> List [_Dataset_T ]:
580
+ def get_return_values (self ) -> List [_Target_T ]:
581
581
"""
582
582
Halts the current thread execution until the thread completes
583
583
584
584
Returns
585
585
-------
586
586
:returns Any: The return value of the target function
587
587
"""
588
- results : List [Data_Out ] = []
588
+ results : List [_Target_T ] = []
589
589
for entry in self ._threads :
590
590
entry .thread .join ()
591
591
results += entry .thread .result
0 commit comments