From a796df07cbaff1aea5807a205cde8a63f20f317c Mon Sep 17 00:00:00 2001 From: Tom White Date: Mon, 8 Mar 2021 16:04:45 +0000 Subject: [PATCH] Don't change DataArray module for Sphinx #482 --- docs/conf.py | 5 ++++- requirements.txt | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e0b406cf2..23925befc 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -100,7 +100,10 @@ def filter(self, record: pylogging.LogRecord) -> bool: # For some reason, intersphinx is not able to to link xarray objects. # https://github.com/pydata/xarray/issues/4279 xarray.Dataset.__module__ = "xarray" -xarray.DataArray.__module__ = "xarray" +# Note that changing DataArray's module causes separate problems, so we don't do it. +# https://github.com/pystatgen/sgkit/issues/482 +# https://github.com/dask/dask/pull/7335 +# xarray.DataArray.__module__ = "xarray" intersphinx_mapping = dict( diff --git a/requirements.txt b/requirements.txt index 8d0daa46d..52504bd21 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ numpy xarray -dask[array] == 2021.02.0 -distributed == 2021.02.0 +dask[array] +distributed dask-ml scipy typing-extensions