When we use async with block, docformatter adds blank line between ocstring and async with block.
How to reproduce
Crate test.py:
"""Example."""
import asyncio
lock = asyncio.Lock()
async def example() -> None:
"""Example."""
async with lock:
pass
And run docformatter:
$ docformatter --diff example.py
--- before/example.py
+++ after/example.py
@@ -7,5 +7,6 @@
async def example() -> None:
"""Example."""
+
async with lock:
pass
After formatting by docstring, Ruff (and pydocstyle) fixes it to no lines.
blank-line-after-function (D202) | Ruff
I tested docformatter v1.7.8
When we use
async withblock, docformatter adds blank line between ocstring and async with block.How to reproduce
Crate test.py:
And run docformatter:
After formatting by docstring, Ruff (and pydocstyle) fixes it to no lines.
blank-line-after-function (D202) | Ruff
I tested docformatter v1.7.8