diff options
author | Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-09-09 23:05:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 23:05:00 +0200 |
commit | 0cc82c4c0de8771c1323cc2e183497d722ea5bfe (patch) | |
tree | 85ff551d96291e647a1b865ce13df9808ad3d4c5 /tests/test_pylint_runners.py | |
parent | ddde4fc074d0b4ae678f5111aafd0f54f3ddf409 (diff) | |
download | pylint-git-0cc82c4c0de8771c1323cc2e183497d722ea5bfe.tar.gz |
Turn on ``mypy`` strict mode 🎉 (#7448)
* Ignore subclasses of Any
* Add ignores for imported code and remove casts
* Add disables for uninferable return values
* Turn on ``mypy`` strict mode
Diffstat (limited to 'tests/test_pylint_runners.py')
-rw-r--r-- | tests/test_pylint_runners.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_pylint_runners.py b/tests/test_pylint_runners.py index 27d083e9d..936de8fd6 100644 --- a/tests/test_pylint_runners.py +++ b/tests/test_pylint_runners.py @@ -67,10 +67,10 @@ def test_pylint_run_jobs_equal_zero_dont_crash_with_cpu_fraction( def _mock_open(*args: Any, **kwargs: Any) -> BufferedReader: if args[0] == "/sys/fs/cgroup/cpu/cpu.cfs_quota_us": - return mock_open(read_data=b"-1")(*args, **kwargs) + return mock_open(read_data=b"-1")(*args, **kwargs) # type: ignore[no-any-return] if args[0] == "/sys/fs/cgroup/cpu/cpu.shares": - return mock_open(read_data=b"2")(*args, **kwargs) - return builtin_open(*args, **kwargs) + return mock_open(read_data=b"2")(*args, **kwargs) # type: ignore[no-any-return] + return builtin_open(*args, **kwargs) # type: ignore[no-any-return] pathlib_path = pathlib.Path |