From 6677dda1f5cfd85f352c3f75bce8fd3e27d0e2d3 Mon Sep 17 00:00:00 2001 From: William Patton Date: Fri, 13 Dec 2024 13:44:43 -0800 Subject: [PATCH] improve type checking for mypy --- funlib/persistence/arrays/array.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funlib/persistence/arrays/array.py b/funlib/persistence/arrays/array.py index fa7e3bc..73a32ce 100644 --- a/funlib/persistence/arrays/array.py +++ b/funlib/persistence/arrays/array.py @@ -1,6 +1,6 @@ import logging from functools import reduce -from typing import Optional, Sequence, Union +from typing import Optional, Sequence, Union, Any import dask.array as da import numpy as np @@ -86,7 +86,7 @@ def __init__( # used for custom metadata unrelated to indexing with physical units # only used if not reading from zarr and there is no built in `.attrs` - self._attrs = {} + self._attrs: dict[str, Any] = {} if lazy_op is not None: self.apply_lazy_ops(lazy_op)