How to fix trailing whitespace in xarray GroupBy repr causing flake8/doctest conflicts?