Skip to content

Commit

Permalink
[doc] Add warning for empty sequences in 'use-implicit-booleaness-not…
Browse files Browse the repository at this point in the history
…-comparison'
  • Loading branch information
Pierre-Sassoulas committed Apr 30, 2023
1 parent c1bb4f8 commit c484c72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit c484c72

Please sign in to comment.