From 065a741bf6bf2e581cdc0e65329c3b0a733d7037 Mon Sep 17 00:00:00 2001 From: Ari Hartikainen Date: Mon, 18 May 2020 19:59:36 +0300 Subject: [PATCH] Fix empty docstring (#1192) * Fix empty docstring * Rm whitespace * Add #1192 --- CHANGELOG.md | 1 + arviz/plots/backends/__init__.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33809b738d..269fa95967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ * Fixed bug in `plot_posterior` with rcParam "plot.matplotlib.show" = True (#1151) * Set `fill_last` argument of `plot_kde` to False by default (#1158) * plot_ppc animation: improve docs and error handling (#1162) +* Fix import error when wrapped function docstring is empty (#1192) ### Deprecation * `hpd` function deprecated in favor of `hdi`. `credible_interval` argument replaced by `hdi_prob`throughout with exception of `plot_loo_pit` (#1176) diff --git a/arviz/plots/backends/__init__.py b/arviz/plots/backends/__init__.py index 2ee57a34d6..8ae038933e 100644 --- a/arviz/plots/backends/__init__.py +++ b/arviz/plots/backends/__init__.py @@ -192,6 +192,8 @@ def _copy_docstring(lib, function): except ImportError: doc = "Failed to import function {} from {}".format(function, lib) + if not isinstance(doc, str): + doc = "" return doc