Skip to content

Commit abea6eb

Browse files
committed
Sort imports.
1 parent 7f4b3b3 commit abea6eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyomo/contrib/solver/solvers/knitro/direct.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111

1212

1313
import io
14-
1514
from collections.abc import Callable, Iterable, Mapping, MutableMapping, Sequence
1615
from typing import Any, List, Optional, Tuple
1716

18-
from pyomo.common.collections.component_map import ComponentMap
17+
from pyomo.common.collections import ComponentMap
1918
from pyomo.common.errors import ApplicationError
2019
from pyomo.common.flags import NOTSET
2120
from pyomo.common.numeric_types import value
@@ -43,7 +42,7 @@
4342
from pyomo.core.staleflag import StaleFlagManager
4443
from pyomo.repn.standard_repn import StandardRepn, generate_standard_repn
4544

46-
from .api import knitro, KNITRO_AVAILABLE, KNITRO_VERSION
45+
from .api import KNITRO_AVAILABLE, KNITRO_VERSION, knitro
4746
from .config import KnitroConfig
4847

4948

pyomo/contrib/solver/tests/solvers/test_knitro_direct.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
# ___________________________________________________________________________
1111

1212
import unittest
13-
import pyomo.environ as pyo
13+
1414
import pyomo.contrib.solver.solvers.knitro as knitro
15+
import pyomo.environ as pyo
1516

1617
avail = knitro.KnitroDirectSolver().available()
1718

0 commit comments

Comments
 (0)