[mypy] Enable following imports for some directories (#6681)
This commit is contained in:
@@ -724,7 +724,7 @@ class ParallelConfig:
|
||||
backend)
|
||||
|
||||
self._verify_args()
|
||||
self.rank = 0
|
||||
self.rank: int = 0
|
||||
|
||||
@property
|
||||
def use_ray(self) -> bool:
|
||||
@@ -850,6 +850,7 @@ class SchedulerConfig:
|
||||
|
||||
|
||||
class DeviceConfig:
|
||||
device: Optional[torch.device]
|
||||
|
||||
def __init__(self, device: str = "auto") -> None:
|
||||
if device == "auto":
|
||||
|
||||
Reference in New Issue
Block a user