PY-35627 Make Python formatter always add a line break after a decorator list

For regular non-async functions, it already worked thanks to PyTokenSeparatorGenerator.

GitOrigin-RevId: b60dba7b34710cad7dc46ad6f943b3944fc00c42
This commit is contained in:
Mikhail Golubev
2024-02-01 13:53:12 +02:00
committed by intellij-monorepo-bot
parent 0a14ce2dea
commit b55fd53258
4 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
class C:
async def <caret>m(self, p):
return f'{p}'

View File

@@ -0,0 +1,4 @@
class C:
@staticmethod
async def <caret>m(p):
return f'{p}'