summaryrefslogtreecommitdiff
path: root/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-string/details.rst
blob: c5781b739fc94d43e2efe3beb3bb466ab7aa12b2 (plain)
1
2
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 string (for example ``None``, an empty sequence, or ``0``),
the code will not be equivalent.