Skip to content

Conversation

@morbult
Copy link
Contributor

@morbult morbult commented Jun 9, 2025

Viewing the docstring/help is currently not possible for methods in MDF that are originally implemented in MDF3 and/or MDF4, for example get.

I think this is an unintended side effect of the recent and excellent type safety work by @JulienGrv. get and some other methods are explicitly redefined in the MDF class and just forwarding the value from their equivalents in the _mdf object, and from reading this discussion I understand why it was done. What is missing is just the connection to the docstring of the underlying method, from either MDF3 or MDF4.

In this PR I solve it by copying __doc__ from MDF._mdf.method_name to MDF.method_name in __init__. It works but there might be some other issue I have overlooked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant