Skip to content

Commit

Permalink
Fix empty docstring (#1192)
Browse files Browse the repository at this point in the history
* Fix empty docstring

* Rm whitespace

* Add #1192
  • Loading branch information
ahartikainen authored May 18, 2020
1 parent a6ea9e5 commit 065a741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions arviz/plots/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 065a741

Please sign in to comment.