Fix typing and minor issues
This commit is contained in:
parent
2db2253578
commit
72ab627a34
54 changed files with 635 additions and 589 deletions
8
great_ai/utilities/parallel_map/map_result.py
Normal file
8
great_ai/utilities/parallel_map/map_result.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
from typing import Any, NamedTuple, Optional
|
||||
|
||||
|
||||
class MapResult(NamedTuple):
|
||||
order: int
|
||||
value: Any
|
||||
exception: Optional[Exception] = None
|
||||
worker_traceback: Optional[str] = None
|
||||
Loading…
Add table
Add a link
Reference in a new issue