diff --git a/napari/utils/_dask_utils.py b/napari/utils/_dask_utils.py index 125f4337957..fcc5bbf59c4 100644 --- a/napari/utils/_dask_utils.py +++ b/napari/utils/_dask_utils.py @@ -59,14 +59,14 @@ def resize_dask_cache( from psutil import virtual_memory if nbytes is None and mem_fraction is not None: - nbytes = virtual_memory().total * mem_fraction + nbytes = int(virtual_memory().total * mem_fraction) avail = _DASK_CACHE.cache.available_bytes # if we don't have a cache already, create one. if avail == 1: # If neither nbytes nor mem_fraction was provided, use default if nbytes is None: - nbytes = virtual_memory().total * _DEFAULT_MEM_FRACTION + nbytes = int(virtual_memory().total * _DEFAULT_MEM_FRACTION) _DASK_CACHE.cache.resize(nbytes) elif nbytes is not None and nbytes != _DASK_CACHE.cache.available_bytes: # if the cache has already been registered, then calling diff --git a/resources/requirements_mypy.txt b/resources/requirements_mypy.txt index 4a13df89d4f..fc20c67773d 100644 --- a/resources/requirements_mypy.txt +++ b/resources/requirements_mypy.txt @@ -18,7 +18,7 @@ markdown-it-py==3.0.0 # via rich mdurl==0.1.2 # via markdown-it-py -mypy==1.5.0 +mypy==1.6.0 # via -r resources/requirements_mypy.in mypy-extensions==1.0.0 # via