Skip to content

Commit 10a9188

Browse files
Fix bad initialization of class
1 parent 3bd3176 commit 10a9188

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

pylint/checkers/format.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -307,20 +307,13 @@ class FormatChecker(BaseTokenChecker, BaseRawFileChecker):
307307
),
308308
)
309309

310-
def __init__(self, linter: PyLinter) -> None:
311-
super().__init__(linter)
310+
def open(self) -> None:
312311
self._lines: dict[int, str] = {}
313312
self._visited_lines: dict[int, Literal[1, 2]] = {}
314313
scientific = self.linter.config.strict_scientific_notation
315314
engineering = self.linter.config.strict_engineering_notation
316315
underscore = self.linter.config.strict_underscore_notation
317316
float_config = sum([scientific, engineering, underscore])
318-
print(
319-
f"scientific: {scientific}, "
320-
f"engineering: {engineering},"
321-
f" underscore; {underscore}"
322-
f" float_config; {float_config}"
323-
)
324317
if float_config > 1:
325318
raise ValueError(
326319
"Only one of strict-scientific-notation, "
@@ -336,11 +329,6 @@ def __init__(self, linter: PyLinter) -> None:
336329
self.should_check_scientific_notation = scientific
337330
self.should_check_engineering_notation = engineering
338331
self.should_check_underscore_notation = underscore
339-
print(
340-
self.should_check_scientific_notation,
341-
self.should_check_engineering_notation,
342-
self.should_check_underscore_notation,
343-
)
344332

345333
def new_line(self, tokens: TokenWrapper, line_end: int, line_start: int) -> None:
346334
"""A new line has been encountered, process it if necessary."""

0 commit comments

Comments
 (0)