Skip to content

Commit

Permalink
Add newline before a property's doc string
Browse files Browse the repository at this point in the history
Otherwise it renders incorrectly at least without a type.

```python
@Property
def foo(self):
    """Foo's doc string"""
    pass
```
  • Loading branch information
tannewt authored and AWhetter committed Oct 25, 2024
1 parent fac7695 commit bedadd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoapi/templates/python/property.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
{% endfor %}

{% if obj.docstring %}

{{ obj.docstring|indent(3) }}
{% endif %}
{% endif %}

0 comments on commit bedadd4

Please sign in to comment.