Skip to content

Commit

Permalink
suppress errors in torchtnt
Browse files Browse the repository at this point in the history
Differential Revision: D57175682
  • Loading branch information
JKSenthil authored and facebook-github-bot committed May 10, 2024
1 parent 735bfbc commit e28003c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/framework/callbacks/test_dcp_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,20 @@ class DummySavePlanner(DefaultSavePlanner):
def __init__(self) -> None:
super().__init__()

# pyre-fixme[14]: `set_up_planner` overrides method defined in
# `DefaultSavePlanner` inconsistently.
def set_up_planner(self, state_dict: STATE_DICT_TYPE, is_coordinator: bool) -> None:
# pyre-fixme[6]: For 2nd argument expected `Optional[StorageMeta]` but got
# `bool`.
super().set_up_planner(state_dict, is_coordinator)


class DummyLoadPlanner(DefaultLoadPlanner):
def __init__(self) -> None:
super().__init__()

# pyre-fixme[14]: `set_up_planner` overrides method defined in
# `DefaultLoadPlanner` inconsistently.
def set_up_planner(
self,
state_dict: STATE_DICT_TYPE,
Expand Down

0 comments on commit e28003c

Please sign in to comment.