Skip to content

Commit 070f519

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 32e950e commit 070f519

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

pylint/checkers/typecheck.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,11 +1453,13 @@ def visit_call(self, node: nodes.Call) -> None:
14531453
"""Check that called functions/methods are inferred to callable objects,
14541454
and that passed arguments match the parameters in the inferred function.
14551455
"""
1456-
def _dp(s, val = None):
1456+
1457+
def _dp(s, val=None):
14571458
if val is None:
14581459
print(f" {s}", flush=True)
14591460
else:
14601461
print(f" {s}: {val}", flush=True)
1462+
14611463
_dp("-" * 25)
14621464
_dp("visit call, node", node)
14631465

tests/test_self.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def test_wrong_import_position_when_others_disabled(self) -> None:
343343

344344
def test_super_init_with_non_self_argument(self) -> None:
345345
module1 = join(HERE, "regrtest_data", "super_init_with_non_self_argument.py")
346-
args = [ module1 ]
346+
args = [module1]
347347
out = StringIO()
348348
self._run_pylint(args, out=out)
349349
actual_output = self._clean_paths(out.getvalue().strip())
@@ -354,9 +354,11 @@ def test_super_init_with_non_self_argument(self) -> None:
354354
{module1}:11:0: blah
355355
"""
356356
)
357-
assert "Your code has been rated at 10.00/10" not in actual_output, "bad code should fail."
357+
assert (
358+
"Your code has been rated at 10.00/10" not in actual_output
359+
), "bad code should fail."
358360
assert self._clean_paths(expected_output.strip()) == actual_output.strip()
359-
361+
360362
def test_progress_reporting(self) -> None:
361363
module1 = join(HERE, "regrtest_data", "import_something.py")
362364
module2 = join(HERE, "regrtest_data", "wrong_import_position.py")

0 commit comments

Comments
 (0)