summaryrefslogtreecommitdiff
path: root/pylint/checkers/refactoring
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2023-01-28 13:35:46 -0500
committerGitHub <noreply@github.com>2023-01-28 19:35:46 +0100
commitaf555eddf6ecdb1993345dce728a6b4c38dd4a02 (patch)
treea0c05f8d37da73c4021c82b7c9e8ce5df5aad855 /pylint/checkers/refactoring
parentacb28d8fcefb06179d9e6528ba14dd099e12ecfa (diff)
downloadpylint-git-af555eddf6ecdb1993345dce728a6b4c38dd4a02.tar.gz
Tighten design constraints (#8115)
* Lower max locals * Lower max statements * Lower max try statements * Lower max branches * Lower max args * Cut design constraints with default values
Diffstat (limited to 'pylint/checkers/refactoring')
-rw-r--r--pylint/checkers/refactoring/refactoring_checker.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/checkers/refactoring/refactoring_checker.py b/pylint/checkers/refactoring/refactoring_checker.py
index f6db3419f..0d51784ae 100644
--- a/pylint/checkers/refactoring/refactoring_checker.py
+++ b/pylint/checkers/refactoring/refactoring_checker.py
@@ -854,6 +854,7 @@ class RefactoringChecker(checkers.BaseTokenChecker):
self._check_consider_get(node)
self._check_consider_using_min_max_builtin(node)
+ # pylint: disable = too-many-branches
def _check_consider_using_min_max_builtin(self, node: nodes.If) -> None:
"""Check if the given if node can be refactored as a min/max python builtin."""
if self._is_actual_elif(node) or node.orelse: