Skip to content

Commit 90287c4

Browse files
committed
Adjust some ignore directives. Use type: ignore for oss-only suppressions
1 parent 8773738 commit 90287c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

torchx/schedulers/aws_sagemaker_scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ def _submit_dryrun(
261261
raise ValueError(
262262
f"{key} is controlled by aws_sagemaker_scheduler and is set to {job_def[key]}"
263263
)
264-
value = cfg.get(key) # pyre-ignore[26]
264+
value = cfg.get(key) # type: ignore
265265
if value is not None:
266-
job_def[key] = value
266+
job_def[key] = value # type: ignore
267267

268268
req = AWSSageMakerJob(
269269
job_name=job_name,

torchx/schedulers/ray/ray_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def load_actor_json(filename: str) -> List[RayActor]:
116116
return actors
117117

118118

119-
def create_placement_group_async(replicas: List[RayActor]) -> PlacementGroup:
119+
def create_placement_group_async(replicas: List[RayActor]) -> PlacementGroup: # type: ignore
120120
"""return a placement group reference, the corresponding placement group could be scheduled or pending"""
121121
bundles = []
122122
for replica in replicas:

0 commit comments

Comments
 (0)