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

Allow docstring to use single quotes and to not be displayed #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

agoscinski
Copy link

By specifying None for the docstring no docstring is displayed. By specifying the quotation mark in the docstring the docstring is not put into triple quotes allowing a docstring in signle quotes.

The implementation puts the responsibility to add the correct quotation marks to the python side so we can be more flexible.

@agoscinski agoscinski marked this pull request as ready for review December 11, 2024 20:27
By specifying None for the docstring no docstring is displayed. By
specifying the quotation mark in the docstring the docstring is not
put into triple quotes allowing a docstring in signle quotes.

The implementation puts the responsibility to add the correct quotation
marks to the python side so we can be more flexible.

The line numbers are now counted from the function body if the docstring
is empty.
@agoscinski
Copy link
Author

From here on I am not sure how to get rid of the empty line that used to be the docstring
Screenshot 2024-12-12 at 13 31 47

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