summaryrefslogtreecommitdiff
path: root/pylint/checkers/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/utils.py')
-rw-r--r--pylint/checkers/utils.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index 0fee05af9..43157d0f9 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -1626,12 +1626,8 @@ def is_function_body_ellipsis(node: nodes.FunctionDef) -> bool:
)
-def is_empty_list_literal(node: Optional[nodes.NodeNG]) -> bool:
- return isinstance(node, nodes.List) and not node.elts
-
-
-def is_empty_tuple_literal(node: Optional[nodes.NodeNG]) -> bool:
- return isinstance(node, nodes.Tuple) and not node.elts
+def is_base_container(node: Optional[nodes.NodeNG]) -> bool:
+ return isinstance(node, nodes.BaseContainer) and not node.elts
def is_empty_dict_literal(node: Optional[nodes.NodeNG]) -> bool: