Skip to content

Commit 057265c

Browse files
committed
feat: added class based AndersonProximalGradient (and fix mypy errors)
1 parent 3605b1d commit 057265c

2 files changed

Lines changed: 467 additions & 23 deletions

File tree

pyproximal/optimization/basesolver.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
_units = {"B": 1, "KB": 1024, "MB": 1024**2, "GB": 1024**3}
1616

1717

18-
class Solver(pSolver, metaclass=ABCMeta):
18+
class Solver(pSolver, metaclass=ABCMeta): # type: ignore[misc]
1919
r"""Solver
2020
2121
This is a template class which a user must subclass when implementing a new solver.
@@ -114,9 +114,9 @@ def solve(
114114
self,
115115
proxf: ProxOperator | list[ProxOperator],
116116
proxg: ProxOperator | None = None,
117-
*args,
117+
*args: Any,
118118
show: bool = False,
119-
**kwargs,
119+
**kwargs: Any,
120120
) -> Any:
121121
"""Solve
122122

0 commit comments

Comments
 (0)