fix non-generic types
This commit is contained in:
parent
5c07fff8b4
commit
d75cd50a62
|
@ -2,7 +2,7 @@ from collections import Counter
|
||||||
from concurrent.futures import Future, ThreadPoolExecutor, ProcessPoolExecutor
|
from concurrent.futures import Future, ThreadPoolExecutor, ProcessPoolExecutor
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
from multiprocessing import Value
|
from multiprocessing import Value
|
||||||
from typing import Any, Callable, Dict, List, Optional, Tuple, Union
|
from typing import Any, Callable, List, Optional, Tuple, Union
|
||||||
|
|
||||||
from .params import (
|
from .params import (
|
||||||
DeviceParams,
|
DeviceParams,
|
||||||
|
@ -12,11 +12,11 @@ logger = getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class JobContext:
|
class JobContext:
|
||||||
cancel: Value[bool] = None
|
cancel: Value = None
|
||||||
device_index: Value[int] = None
|
device_index: Value = None
|
||||||
devices: List[DeviceParams] = None
|
devices: List[DeviceParams] = None
|
||||||
key: str = None
|
key: str = None
|
||||||
progress: Value[int] = None
|
progress: Value = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue