Originally brought up by @OriolAbril in #43. See also https://github.com/scientific-python/docstub/issues/43#issuecomment-2911852257 for a potential fix.