Skip to content

Commit

Permalink
lint: appease mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
XuehaiPan committed Dec 9, 2023
1 parent 99c5569 commit 26903cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchopt/diff/implicit/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def make_custom_vjp_solver_fn(
# pylint: disable-next=missing-class-docstring,abstract-method
class ImplicitMetaGradient(Function):
@staticmethod
def forward( # type: ignore[override] # pylint: disable=arguments-differ
def forward( # pylint: disable=arguments-differ
ctx: Any,
*flat_args: Any,
) -> tuple[Any, ...]:
Expand Down
2 changes: 1 addition & 1 deletion torchopt/distributed/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def remote_async_call(
if reducer is not None:
return cast(
Future[U],
future.then(lambda fut: cast(Callable[[Iterable[T]], U], reducer)(fut.wait())),
future.then(lambda fut: reducer(fut.wait())),
)
return future

Expand Down

0 comments on commit 26903cb

Please sign in to comment.