unnecessary-ellipsis / W2301#
Unnecessary ellipsis constant
Used when the ellipsis constant is encountered and can be avoided. A line of code consisting of an ellipsis is unnecessary if there is a docstring on the preceding line or if there is a statement in the same scope.
def my_function(): """My docstring"""
def my_function(): """My docstring""" ... # [unnecessary-ellipsis]
Created by the unnecessary_ellipsis checker.