diff options
Diffstat (limited to 'doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst')
-rw-r--r-- | doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst | 3 |
1 files changed, 3 insertions, 0 deletions
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 new file mode 100644 index 000000000..670633b2a --- /dev/null +++ b/doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/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 an ``int`` (for example ``None``, or an empty string), +the code will not be equivalent. |