File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -170,16 +170,14 @@ def lint_line(
170
170
# but we also care about beautiful docs, so at the moment this lint is quite "inclusive".
171
171
if ellipsis .search (line ):
172
172
has_quote = '"' in line or "'" in line
173
- if has_quote and "Callable" not in line :
174
- return "Use … instead of ..."
175
- elif (
173
+ if (has_quote and "Callable" not in line ) or (
176
174
file_extension not in "py"
177
175
and not ellipsis_expression .search (line )
178
176
and not ellipsis_import .search (line )
179
177
and not ellipsis_bare .search (line )
180
178
and not ellipsis_reference .search (line )
181
179
):
182
- return "Use … instead of ..."
180
+ return "Use … instead of ... (on Mac it's option+;) "
183
181
184
182
if "http" not in line :
185
183
if re .search (r"\b2d\b" , line ):
You can’t perform that action at this time.
0 commit comments