Skip to content

Commit 4fd9d29

Browse files
chore(pre-commit): [pre-commit.ci] autoupdate (#196)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Xuehai Pan <[email protected]>
1 parent 26e51d4 commit 4fd9d29

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ repos:
2626
- id: debug-statements
2727
- id: double-quote-string-fixer
2828
- repo: https://github.com/pre-commit/mirrors-clang-format
29-
rev: v17.0.4
29+
rev: v17.0.6
3030
hooks:
3131
- id: clang-format
3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: v0.1.5
33+
rev: v0.1.6
3434
hooks:
3535
- id: ruff
3636
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,5 @@ filterwarnings = [
314314
'ignore:Explicitly requested dtype float64 requested in .* is not available, and will be truncated to dtype float32\.:UserWarning',
315315
'ignore:jax\.numpy\.DeviceArray is deprecated\. Use jax\.Array\.:DeprecationWarning',
316316
'ignore:.*functorch.*deprecate.*:UserWarning',
317+
'ignore:.*Apple Paravirtual device.*:UserWarning',
317318
]

torchopt/diff/implicit/decorator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def make_custom_vjp_solver_fn(
279279
# pylint: disable-next=missing-class-docstring,abstract-method
280280
class ImplicitMetaGradient(Function):
281281
@staticmethod
282-
def forward( # type: ignore[override] # pylint: disable=arguments-differ
282+
def forward( # pylint: disable=arguments-differ
283283
ctx: Any,
284284
*flat_args: Any,
285285
) -> tuple[Any, ...]:

torchopt/distributed/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def remote_async_call(
324324
if reducer is not None:
325325
return cast(
326326
Future[U],
327-
future.then(lambda fut: cast(Callable[[Iterable[T]], U], reducer)(fut.wait())),
327+
future.then(lambda fut: reducer(fut.wait())),
328328
)
329329
return future
330330

0 commit comments

Comments
 (0)