From c784c559fa37407dfec6abc7734cb61bd5e7cc7f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 7 Sep 2022 17:50:38 -0400 Subject: style: adapt to latest pylint concerns Before these changes, these violations happened: ``` lint run-test: commands[6] | python -m pylint --notes= coverage tests doc ci igor.py setup.py __main__.py ************* Module coverage.parser coverage/parser.py:1290 I: Useless suppression of 'too-many-function-args' (useless-suppression) ************* Module ci.download_gha_artifacts ci/download_gha_artifacts.py:18 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/download_gha_artifacts.py:54 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.trigger_build_kits ci/trigger_build_kits.py:21 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.github_releases ci/github_releases.py:138 E: Too many positional arguments for function call (too-many-function-args) ci/github_releases.py:138 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ************* Module ci.comment_on_fixes ci/comment_on_fixes.py:30 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:37 W: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout) ci/comment_on_fixes.py:49 W: Missing timeout argument for method 'requests.post' can cause your program to hang indefinitely (missing-timeout) ************* Module ci.parse_relnotes ci/parse_relnotes.py:126 E: Too many positional arguments for function call (too-many-function-args) ci/parse_relnotes.py:126 I: Useless suppression of 'no-value-for-parameter' (useless-suppression) ``` --- coverage/parser.py | 1 - 1 file changed, 1 deletion(-) (limited to 'coverage/parser.py') diff --git a/coverage/parser.py b/coverage/parser.py index 7ef67d2c..3dbfbf30 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -1287,7 +1287,6 @@ class AstArcAnalyzer: self.add_arc(start, -start, None, f"didn't finish the {noun} on line {start}") return _code_object__expression_callable - # pylint: disable=too-many-function-args _code_object__Lambda = _make_expression_code_method("lambda") _code_object__GeneratorExp = _make_expression_code_method("generator expression") _code_object__DictComp = _make_expression_code_method("dictionary comprehension") -- cgit v1.2.1