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

@expressify should have an option to ignore docstrings #1081

Closed
wch opened this issue Jan 27, 2024 · 0 comments · Fixed by #1163
Closed

@expressify should have an option to ignore docstrings #1081

wch opened this issue Jan 27, 2024 · 0 comments · Fixed by #1163
Milestone

Comments

@wch
Copy link
Collaborator

wch commented Jan 27, 2024

Functions decorated with @expressify cannot have docstrings, because the docstring will be rendered in the app. For example:

@expressify
def f():
    """This function does something really special

    ...
    """

    ui.div("hello")


f()

There should be an option to ignore the first item.

@wch wch added this to the v0.8.0 milestone Jan 27, 2024
@wch wch closed this as completed in #1163 Mar 1, 2024
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 a pull request may close this issue.

1 participant