We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24dc0d5 commit 7ed4b89Copy full SHA for 7ed4b89
torchx/runner/api.py
@@ -43,6 +43,7 @@
43
44
from torchx.util.types import none_throws
45
from torchx.workspace.api import PkgInfo, WorkspaceBuilder, WorkspaceMixin
46
+from typing_extensions import Self
47
48
from .config import get_config, get_configs
49
@@ -120,7 +121,7 @@ def _get_scheduler_params_from_env(self) -> Dict[str, str]:
120
121
scheduler_params[lower_case_key.strip("torchx_")] = value
122
return scheduler_params
123
- def __enter__(self) -> "Runner":
124
+ def __enter__(self) -> Self:
125
return self
126
127
def __exit__(
0 commit comments