Skip to content

Commit

Permalink
Linting & Pyre changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 committed Mar 28, 2024
1 parent c6f8516 commit 8e79a51
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
Empty file modified scripts/kueue_test.py
100644 → 100755
Empty file.
3 changes: 1 addition & 2 deletions torchx/schedulers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@

class SchedulerFactory(Protocol):
# pyre-fixme: Scheduler opts
def __call__(self, session_name: str, **kwargs: object) -> Scheduler:
...
def __call__(self, session_name: str, **kwargs: object) -> Scheduler: ...


def _defer_load_scheduler(path: str) -> SchedulerFactory:
Expand Down
2 changes: 1 addition & 1 deletion torchx/schedulers/kueue_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def app_to_resource(
"spec": task,
}
if annotations is not None:
resource["metadata"]["annotations"] = annotations # pyre-ignore [16]
resource["metadata"]["annotations"] = annotations # pyre-ignore[16]
return resource


Expand Down
2 changes: 1 addition & 1 deletion torchx/schedulers/test/kueue_scheduler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def test_min_replicas(self) -> None:
continue

resource["spec"]["minAvailable"] = max( # pyre-ignore[16]
0, resource["spec"]["backoffLimit"] - 1
0, resource["spec"]["backoffLimit"] - 1 # pyre-ignore[16]
)

min_available = resource["spec"]["minAvailable"]
Expand Down

0 comments on commit 8e79a51

Please sign in to comment.