Open quaquel opened 3 weeks ago
Strange. @maartenbreddels, if I may ask, have you encountered this earlier by any chance?
No, that's strange indeed. Looking at this example it seems that the docstring is passed 'up' to the decorator.
My hunch is that the wrapper in solara.component
should itself be annoted with functools.wraps
to solve this problem. According to the docs "Without the use of this decorator factory, the name of the example function would have been 'wrapper', and the docstring of the original example() would have been lost."
Something weird is going on: all functions annotated with
@solara.component
are not included in the read-the-docs API overview. I have checked the error log on RTD (we need to some cleaning...., but that's a seperate issue). I can't find anything related to this. No idea what is going on.