diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-04-26 13:16:21 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-02 20:01:39 +0200 |
commit | 26686d544eab7236a92e56cc90c34b6e3a37f473 (patch) | |
tree | ca93e25911bdaa0608653d2a215d0b0fda5fbe1a /doc/data/messages/u/use-implicit-booleaness-not-comparison-to-zero/details.rst | |
parent | 87fe5e58c2013b4b1949836c142993464b153237 (diff) | |
download | pylint-git-26686d544eab7236a92e56cc90c34b6e3a37f473.tar.gz |
Merge the compare-to-zero extensions to 'implicit_booleaness_checker'
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. |