Skip to content

Commit

Permalink
Removed common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
S-Dafarra committed Mar 13, 2023
1 parent cc78003 commit 09ecc8e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
8 changes: 7 additions & 1 deletion src/hippopt/base/optimization_object.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
from hippopt.common import Any, ClassVar, Type, TypeVar, abc, copy, cs, dataclasses, np
import abc
import copy
import dataclasses
from typing import Any, ClassVar, Type, TypeVar

import casadi as cs
import numpy as np

TOptimizationObject = TypeVar("TOptimizationObject", bound="OptimizationObject")
StorageType = cs.MX | np.ndarray
Expand Down
4 changes: 3 additions & 1 deletion src/hippopt/base/parameter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import dataclasses
from typing import Any, ClassVar, TypeVar

from hippopt.base.optimization_object import OptimizationObject
from hippopt.common import Any, ClassVar, TypeVar, dataclasses

TParameter = TypeVar("TParameter", bound="Parameter")

Expand Down
4 changes: 3 additions & 1 deletion src/hippopt/base/variable.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import dataclasses
from typing import Any, ClassVar, TypeVar

from hippopt.base.optimization_object import OptimizationObject
from hippopt.common import Any, ClassVar, TypeVar, dataclasses

TVariable = TypeVar("TVariable", bound="Variable")

Expand Down
19 changes: 0 additions & 19 deletions src/hippopt/common.py

This file was deleted.

0 comments on commit 09ecc8e

Please sign in to comment.