.. _use-implicit-booleaness-not-comparison:

use-implicit-booleaness-not-comparison / C1803
==============================================

**Message emitted:**

'%s' can be simplified to '%s' as an empty sequence is falsey

**Description:**

*Used when Pylint detects that collection literal comparison is being used to check for emptiness; Use implicit booleaness instead of a collection classes; empty collections are considered as false*


**Correct code:**

.. literalinclude:: /data/messages/u/use-implicit-booleaness-not-comparison/good.py
   :language: python

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


Created by the `refactoring <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/refactoring/implicit_booleaness_checker.py>`__ checker.