Skip to content

Conversation

gentlegiantJGC
Copy link
Contributor

If pybind11-stubgen is run on a normal python docstring it will convert this

"""
This is a docstring.
"""

To this

"""

This is a docstring.
"""

The leading newline is interpreted as part of the docstring and pybind11-stubgen will add another newline as part of its formatting.
Stripping these leading newlines should have no effect in docstrings defined using pybind11 unless the user adds a leading newline for some reason.

If pybind11-stubgen is run on a normal python docstring it will convert this
```py
"""
This is a docstring.
"""
```
To this
```py
"""

This is a docstring.
"""
```

The leading newline is interpreted as part of the docstring and pybind11-stubgen will add another newline as part of its formatting.
Stripping these leading newlines should have no effect in docstrings defined using pybind11 unless the user adds a leading newline for some reason.
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