Describe the bug
If the first line inside an indented function is empty and the body is ..., black fails to format it.
To Reproduce
https://black.vercel.app/?version=main&state=_Td6WFoAAATm1rRGAgAhARYAAAB0L-Wj4ACQAFxdAD2IimZxl1N_WlXnON2nzNJyA7rxEz3ITq0Rr8lcyuT-7lJq6-30yBPNldub44lXXOBKYonCShOJuW7cuZ_9TCCgKPjpZqqogwanJNRK0YrZc4gHqvyNL22TtygAACOiGQzKhfHyAAF4kQEAAAC0Mv5wscRn-wIAAAAABFla
class C:
def f(self):
...
Expected behavior
The snippet above can be formatted.
Environment
- Black's version: Stable: 24.1.0 | Main: @ed770b
- OS and Python version: irrelevant
Additional context
None.
Edit
Function body being ... is a key condition.