From c17fb899d37761ca83025cc62d8f8100a4b54558 Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 16 Mar 2024 13:20:02 -0400 Subject: [PATCH] future import --- src/nd2/tiff.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/nd2/tiff.py b/src/nd2/tiff.py index 66657bd..340931a 100644 --- a/src/nd2/tiff.py +++ b/src/nd2/tiff.py @@ -1,12 +1,12 @@ """Functions for converting nd2 to tiff files.""" +from __future__ import annotations + import warnings from os import PathLike from pathlib import Path from typing import TYPE_CHECKING, Any, Callable, Iterable, Iterator -import numpy as np - from nd2._ome import nd2_ome_metadata from nd2.nd2file import ND2File @@ -33,7 +33,9 @@ def _progress( if TYPE_CHECKING: - from .nd2file import ND2File # noqa: TCH004 + import numpy as np + + from .nd2file import ND2File def nd2_to_tiff(