summaryrefslogtreecommitdiff
path: root/tests/benchmark
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-09-07 14:01:20 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-09-13 13:32:34 +0200
commite726eb40eabc29beacb18d174b3b75217326a7b9 (patch)
treec5766a94edbb7a842de7d6f30ff93cddc0c30e18 /tests/benchmark
parentebae36e35447f113649b87a5dd7a3e03b793605c (diff)
downloadpylint-git-e726eb40eabc29beacb18d174b3b75217326a7b9.tar.gz
Type ``process_module`` and update argument names
Diffstat (limited to 'tests/benchmark')
-rw-r--r--tests/benchmark/test_baseline_benchmarks.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/benchmark/test_baseline_benchmarks.py b/tests/benchmark/test_baseline_benchmarks.py
index 693fe4d68..27dada39d 100644
--- a/tests/benchmark/test_baseline_benchmarks.py
+++ b/tests/benchmark/test_baseline_benchmarks.py
@@ -16,6 +16,7 @@ import time
from unittest.mock import patch
import pytest
+from astroid import nodes
import pylint.interfaces
from pylint.checkers.base_checker import BaseChecker
@@ -50,7 +51,7 @@ class SleepingChecker(BaseChecker):
}
sleep_duration = 0.5 # the time to pretend we're doing work for
- def process_module(self, _astroid):
+ def process_module(self, _node: nodes.Module) -> None:
"""Sleeps for `sleep_duration` on each call
This effectively means each file costs ~`sleep_duration`+framework overhead"""
@@ -75,7 +76,7 @@ class SleepingCheckerLong(BaseChecker):
}
sleep_duration = 0.5 # the time to pretend we're doing work for
- def process_module(self, _astroid):
+ def process_module(self, _node: nodes.Module) -> None:
"""Sleeps for `sleep_duration` on each call
This effectively means each file costs ~`sleep_duration`+framework overhead"""
@@ -96,7 +97,7 @@ class NoWorkChecker(BaseChecker):
)
}
- def process_module(self, _astroid):
+ def process_module(self, _node: nodes.Module) -> None:
pass