Skip to content

Commit 4849a4b

Browse files
committed
verified changes
1 parent 1b3452f commit 4849a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aerosandbox/optimization/opti.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ def solve(
564564
parameter_mapping: dict[cas.MX, float] | None = None,
565565
max_iter: int = 1000,
566566
max_runtime: float = 1e20,
567-
callback: Callable[[int], Any] = None,
567+
callback: Callable[[int], Any] | None = None,
568568
verbose: bool = True,
569569
jit: bool = False, # TODO document, add unit tests for jit
570570
detect_simple_bounds: bool = False, # TODO document
@@ -1143,7 +1143,7 @@ def constrain_derivative(
11431143
with_respect_to: np.ndarray | cas.MX,
11441144
method: str = "trapezoidal",
11451145
_stacklevel: int = 1,
1146-
) -> None:
1146+
) -> cas.MX | None | list[cas.MX]:
11471147
"""
11481148
Adds a constraint to the optimization problem such that:
11491149

0 commit comments

Comments
 (0)