Skip to content

Commit f85efec

Browse files
fix: [pre-commit.ci] auto fixes [...]
1 parent 37ce29e commit f85efec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchopt/nn/stateless.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def reparametrize(
8484
module: nn.Module,
8585
named_tensors: dict[str, torch.Tensor] | Iterable[tuple[str, torch.Tensor]],
8686
allow_missing: bool = False,
87-
) -> Generator[nn.Module, None, None]:
87+
) -> Generator[nn.Module]:
8888
"""Reparameterize the module parameters and/or buffers."""
8989
if not isinstance(named_tensors, dict):
9090
named_tensors = dict(named_tensors)

0 commit comments

Comments
 (0)