Skip to content

Commit

Permalink
don't say "truthy"
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Jun 10, 2022
1 parent 21f2709 commit bf7f322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/base/basic_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def _check_using_constant_test(
emit = isinstance(test, (nodes.Const,) + structs + const_nodes)
if not isinstance(test, except_nodes):
inferred = utils.safe_infer(test)
# Emit if the call is to a function that only returns GeneratorExp (always truthy)
# Emit if calling a function that only returns GeneratorExp (always tests True)
elif isinstance(test, nodes.Call):
inferred_call = utils.safe_infer(test.func)
if isinstance(inferred_call, nodes.FunctionDef):
Expand Down

0 comments on commit bf7f322

Please sign in to comment.