Skip to content

Commit e6294b0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f82e2fc commit e6294b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pylint/checkers/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,7 +2155,10 @@ def is_terminating_func(node: nodes.Call) -> bool:
21552155

21562156
try:
21572157
for inferred in node.func.infer():
2158-
if hasattr(inferred, "qname") and inferred.qname() in TERMINATING_FUNCS_QNAMES:
2158+
if (
2159+
hasattr(inferred, "qname")
2160+
and inferred.qname() in TERMINATING_FUNCS_QNAMES
2161+
):
21592162
return True
21602163
except (StopIteration, astroid.InferenceError):
21612164
pass

0 commit comments

Comments
 (0)