I think I prefer duplicated yet flat code. The docstring assembly logic looks complicated to me and make the source code less readable. +0 for flattening it.