# eg pandas.Series.str and pandas.Series.dt (see GH9322)
import sphinx # isort:skip
-from sphinx.util import rpartition # isort:skip
from sphinx.ext.autodoc import ( # isort:skip
AttributeDocumenter,
Documenter,
# HACK: this is added in comparison to ClassLevelDocumenter
# mod_cls still exists of class.accessor, so an extra
# rpartition is needed
- modname, accessor = rpartition(mod_cls, ".")
- modname, cls = rpartition(modname, ".")
+ modname, _, accessor = mod_cls.rpartition(".")
+ modname, _, cls = modname.rpartition(".")
parents = [cls, accessor]
# if the module name is still missing, get it like above
if not modname: