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
[x] Links to correct issue
[ ] Update changelog, if changes affect users
[x] PR title starts with Issue #nr, e.g. Issue #737
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
Issue #nr
, e.g.Issue #737