<!-- Please make sure that the bug is not already fixed either in newer versions or the current development version. To confirm this, you have three options: 1. Update Black's version if a newer release exists: `pip install -U black` 2. Use the online formatter at <https://black.vercel.app/?version=main>, which will use the latest main branch. 3. Or run _Black_ on your machine: - create a new virtualenv (make sure it's the same Python version); - clone this repository; - run `pip install -e .[d]`; - run `pip install -r test_requirements.txt` - make sure it's sane by running `python -m pytest`; and - run `black` like you did last time. --> **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 ```python class C: def f(self): ... ``` **Expected behavior** The snippet above can be formatted. **Environment** - Black's version: <!-- e.g. [main] --> Stable: 24.1.0 | Main: @ed770b - OS and Python version: <!-- e.g. [Linux/Python 3.7.4rc1] --> irrelevant **Additional context** <!-- Add any other context about the problem here. --> None. Edit - Function body being `...` is a key condition.