diff --git a/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-string/details.rst b/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-string/details.rst index 257fb92bc3e..1e65c620318 100644 --- a/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-string/details.rst +++ b/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-string/details.rst @@ -1,3 +1,4 @@ Following this check blindly in weakly typed code base can create hard to debug issues. If the value -can be something else that is falsey but not a string (for example ``None``, or ``0``), the code will +can be something else that is falsey but not a string (for example ``None``, an empty sequence, or ``0``), +the code will not be equivalent. diff --git a/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst b/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst index 670633b2ab9..2f86acf5467 100644 --- a/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst +++ b/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst @@ -1,3 +1,3 @@ Following this check blindly in weakly typed code base can create hard to debug issues. If the value -can be something else that is falsey but not an ``int`` (for example ``None``, or an empty string), -the code will not be equivalent. +can be something else that is falsey but not an ``int`` (for example ``None``, an empty sequence, +or an empty string), the code will not be equivalent. diff --git a/doc/data/messages/u/use-implicit-booleaness-not-comparison/details.rst b/doc/data/messages/u/use-implicit-booleaness-not-comparison/details.rst new file mode 100644 index 00000000000..0dc1802459c --- /dev/null +++ b/doc/data/messages/u/use-implicit-booleaness-not-comparison/details.rst @@ -0,0 +1,3 @@ +Following this check blindly in weakly typed code base can create hard to debug issues. If the value +can be something else that is falsey but not a sequence (for example ``None``, an empty string, or ``0``), +the code will not be equivalent.