DOC: fix doctests for depr `closed` arg
``closed`` is deprecated for ``inclusive``, and this fixes the docstring warning.

should be backported 1.4.0
@meeseeksdev backport 1.4.x thanks @attack68  Something went wrong ... Please have a look at my logs.