Deltares / imod-python

🐍🧰 Make massive MODFLOW models
https://deltares.github.io/imod-python/
MIT License
16 stars 0 forks source link

Issue #1032 preserve docstring autodoc #1040

Closed JoerivanEngelen closed 1 month ago

JoerivanEngelen commented 1 month ago

Fixes #1032

Description

This adds functools.wraps to preserve docstrings of decorated functions. These are forwarded to sphinx autodocs. This resolves an issue where decorated functions/methods, such as Modflow6Simulation.write, have empty API docs.

Checklist