Skip to content

Commit

Permalink
eliminate unused / indirect qty import
Browse files Browse the repository at this point in the history
  • Loading branch information
whoburg committed Jan 5, 2024
1 parent ece3538 commit ae72d98
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gpkit/nomials/map.py
Expand Up @@ -3,7 +3,8 @@
import numpy as np
from .. import units
from ..exceptions import DimensionalityError
from ..small_classes import HashVector, Strings, qty, EMPTY_HV
from ..small_classes import HashVector, Strings, EMPTY_HV
from ..units import qty
from .substitution import parse_subs

DIMLESS_QUANTITY = qty("dimensionless")
Expand Down
2 changes: 1 addition & 1 deletion gpkit/small_classes.py
Expand Up @@ -3,7 +3,7 @@
from functools import reduce
import numpy as np
from scipy.sparse import csr_matrix
from .units import Quantity, qty # pylint: disable=unused-import
from .units import Quantity

Strings = (str,)
Numbers = (int, float, np.number, Quantity)
Expand Down
3 changes: 2 additions & 1 deletion gpkit/varkey.py
@@ -1,6 +1,7 @@
"""Defines the VarKey class"""
from .small_classes import Count, qty
from .small_classes import Count
from .repr_conventions import ReprMixin
from .units import qty


class VarKey(ReprMixin): # pylint:disable=too-many-instance-attributes
Expand Down

0 comments on commit ae72d98

Please sign in to comment.