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

Preserve docstring of UDFs in non windows environments #939

Merged
merged 1 commit into from
Sep 30, 2018

Conversation

ludaavics
Copy link
Contributor

When working in windows environment, the @xw.func decorator for UDFs preserves the docstring.

In non windows environment, since UDFs are not supported, the decorator is replaced by a dummy function.

However, the docstring may still be useful for generating automated documentation, for instance with Sphinx's .. automodule:: directive.

@fzumstein fzumstein added this to the v0.11.9 milestone Sep 26, 2018
@fzumstein fzumstein merged commit 1f7bc27 into xlwings:master Sep 30, 2018
@fzumstein
Copy link
Member

made the same change for sub and the dummy decorators were actually broken anyways, so I fixed that, too: 094610f

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