Skip to content

Commit

Permalink
type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cgevans committed Jun 28, 2024
1 parent 4fe792d commit cf04f7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/alhambra_mixes/quantitate.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import pint
from pint import Quantity

from .units import Q_, DecimalQuantity, _parse_vol_optional, nmol, normalize, uM, ureg
from .units import NAN_AMOUNT, NAN_VOL, Q_, DecimalQuantity, _parse_vol_optional, nmol, normalize, uM, ureg


def parse_vol(vol: Union[float, int, str, DecimalQuantity]) -> DecimalQuantity:
Expand Down
5 changes: 4 additions & 1 deletion src/alhambra_mixes/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from __future__ import annotations

from typing import TypeVar
from typing import TYPE_CHECKING, TypeVar

if TYPE_CHECKING:
from kithairon.picklists import PickList

T = TypeVar("T")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_mixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ def assert_close(
) -> None:
# This helps with comparing Decimal quantities, which cannot be multiplied by floats, which is
# what happens with the default rtol parameter of pint.testing.assert_allclose.
pint.testing.assert_allclose(actual, expected, rtol, atol, msg)
pint.testing.assert_allclose(actual, expected, rtol, atol, msg) # type: ignore


def test_split_mix():
Expand Down

0 comments on commit cf04f7e

Please sign in to comment.