PY3.W2301
Unnecessary Ellipsis
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.
Noncompliant Code:
Copy
def my_function():
"""My docstring"""
... # [unnecessary-ellipsis]
Compliant Code:
Copy
def my_function():
"""My docstring"""