This currently emits a warning, not an error (i.e. not that urgent), but I did notice this a couple of times in xarray's CI.
I'm not too happy about having to move the definition of module_available above the import (isort might revert that?), but I didn't know whether it would be fine to move that function to a separate module (and I was too lazy to try figuring out a good name for that module).
This currently emits a warning, not an error (i.e. not that urgent), but I did notice this a couple of times in
xarray
's CI.I'm not too happy about having to move the definition of
module_available
above the import (isort
might revert that?), but I didn't know whether it would be fine to move that function to a separate module (and I was too lazy to try figuring out a good name for that module).