Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #85 #95

Closed
wants to merge 5 commits into from
Closed

fixes #85 #95

wants to merge 5 commits into from

Conversation

sherlockdoyle
Copy link

@sherlockdoyle sherlockdoyle commented May 4, 2023

This PR adds changes to split docs for overloaded functions separately. Added tests for the same.

The idea is to parse the docstrings (which are below the signature) while parsing the function_signatures_from_docstring and set it in the FunctionSignature. Then, while generating the stubs, we can use the docstring from the FunctionSignature instead of the whole docstring.

@sherlockdoyle
Copy link
Author

If the docstring of any function or method doesn't have the function signature, these changes could potentially create a problem. But since pybind11 docstrings already have the function signatures, we should be good to go.

@sizmailov
Copy link
Owner

Thanks for the contribution.

Superceeded by #112

@sizmailov sizmailov closed this Aug 29, 2023
This pull request was closed.
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.

2 participants