We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57a4d13 commit e7a0fafCopy full SHA for e7a0faf
tests/functional/u/unnecessary/unnecessary_ellipsis.py
@@ -114,3 +114,18 @@ def func_with_ellipsis_default_arg(a = ...) -> None:
114
115
# Ignore if the ellipsis is used with a lambda expression
116
print("x", lambda: ...)
117
+
118
119
+def func1(val1, _):
120
+ if val1 is not ...:
121
+ pass
122
123
124
+def func2(val1, val2):
125
+ """Ignore if ellipsis is used on comparisons.
126
+ See https://github.com/PyCQA/pylint/issues/6071."""
127
+ if val1 is not ... and val2:
128
129
130
131
+assert "x" != ...
0 commit comments