Skip to content

Commit c6e7d16

Browse files
Eli FinePierre-Sassoulas
Eli Fine
authored andcommitted
removing extraneous line and adding clarifying comment
1 parent 04215ad commit c6e7d16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylint/checkers/spelling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ def open(self):
317317
WordsWithUnderscores,
318318
CamelCasedWord,
319319
SphinxDirectives,
320-
# BlackDirectives
321320
],
322321
)
323322
self.initialized = True
@@ -334,6 +333,7 @@ def _check_spelling(self, msgid, line, line_num):
334333
initial_space = 0
335334
if line.strip().startswith("#") and "docstring" not in msgid:
336335
line = line.strip()[1:]
336+
# A ``Filter`` cannot determine if the directive is at the beginning of a line, nor determine if a colon is present or not (``pyenchant`` strips trailing colons). So implementing this here.
337337
for iter_directive in (
338338
"fmt: on",
339339
"fmt: off",

0 commit comments

Comments
 (0)