Skip to content

Conversation

Kaos599
Copy link

@Kaos599 Kaos599 commented Oct 13, 2025

Description

This PR extends the use-implicit-booleaness-not-len (C1802) checker to detect additional patterns where len() is compared against zero or one, enabling more comprehensive detection of implicit booleaness violations.

Changes Made

Core Implementation (pylint/checkers/refactoring/implicit_booleaness_checker.py):

  • Added _check_len_comparison_with_zero() method to detect len() comparisons with constants
  • Added _get_len_comparison_suggestion() helper for context-aware suggestion generation
  • Updated visit_compare() to call the new detection logic
  • Fixed linting issues: resolved use-set-for-membership and no-else-return warnings

Test Updates:

  • Updated tests/functional/u/use/use_implicit_booleaness_not_len.py with new test cases
  • Updated tests/functional/u/use/use_implicit_booleaness_not_len.txt with expected violations

New Detection Patterns

The checker now catches these previously missed patterns:

# Previously caught
if len(seq):        # C1802 violation
    pass

# Now also caught
if len(seq) == 0:   # C1802 violation → suggest "not seq"
    pass
if len(seq) > 0:    # C1802 violation → suggest "seq"
    pass
if len(seq) != 0:   # C1802 violation → suggest "seq"
    pass
if 0 == len(seq):   # C1802 violation → suggest "not seq"
    pass
# ... and similar patterns with <, <=, >=, ==, !=

This enhancement significantly improves pylint's ability to catch implicit booleaness violations while maintaining the checker's existing behavior and performance characteristics.

Closes #10281

Kaos599 and others added 2 commits October 13, 2025 23:16
Add detection for len() comparisons with 0/1 that can be simplified:
- len(x) == 0 → not x
- len(x) > 0 → x (or bool(x))
- len(x) != 0 → x (or bool(x))
- Reversed operands: 0 == len(x), etc.

Implementation:
- Add _check_len_comparison_with_zero() method
- Add _get_len_comparison_suggestion() for context-aware suggestions
- Reuse existing inference and boolean context detection
- Handle edge cases: chained comparisons, custom __bool__

This comment has been minimized.

Kaos599 and others added 2 commits October 14, 2025 11:08
- Added logic to identify when len() comparisons are nested within boolean operations or are directly returned.
Comment on lines 188 to +191
self._check_compare_to_str_or_zero(node)
if self.linter.is_message_enabled("use-implicit-booleaness-not-len"):
self._check_len_comparison_with_zero(node)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems highly likely that optimization or code deduplication can be found by re-using check_compare_to_str_or_zero here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what i understood i have added _extract_comparison_operands() helper method that both _check_compare_to_str_or_zero() and _check_len_comparison_with_zero() now use.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have issued new commits resolving this

if True or len('TEST'): # [use-implicit-booleaness-not-len]
pass

if len('TEST') == 0: # Should be fine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to check the initial reasoning for this before changing, I didn't have this context when labelling the initial issue a false negative.

@Pierre-Sassoulas Pierre-Sassoulas added the False Negative 🦋 No message is emitted but something is wrong with the code label Oct 14, 2025
@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.1.0 milestone Oct 14, 2025
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 94.11765% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.96%. Comparing base (3de1fbc) to head (4aacb64).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
...heckers/refactoring/implicit_booleaness_checker.py 94.11% 5 Missing ⚠️

❌ Your patch check has failed because the patch coverage (94.11%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #10658      +/-   ##
==========================================
- Coverage   95.96%   95.96%   -0.01%     
==========================================
  Files         176      176              
  Lines       19502    19604     +102     
==========================================
+ Hits        18715    18812      +97     
- Misses        787      792       +5     
Files with missing lines Coverage Δ
...heckers/refactoring/implicit_booleaness_checker.py 97.79% <94.11%> (-2.21%) ⬇️

... and 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This comment has been minimized.

Kaos599 and others added 2 commits October 14, 2025 15:25
…th 0

- Add detection for len(iterable) == 0, != 0, > 0, >= 0, < 1, <= 0 patterns
- Support reversed operands (0 == len(x), 0 < len(x), etc.)
- Extract _extract_comparison_operands() helper to reduce code duplication
- Fix critical bug in constant-on-left comparison logic (1 <= len(x) was wrong)
- Add comprehensive test coverage for edge cases
- Update documentation with new pattern examples
- Fix too-many-returns linting issue by consolidating logic
- All tests passing, 100% coverage for new functionality
Copy link
Contributor

🤖 Effect of this PR on checked open source code: 🤖

Effect on astroid:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pylint-dev/astroid/blob/4a7e23f33c2bafe002127f395150e28e09d6fe63/astroid/brain/brain_typing.py#L198
  2. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pylint-dev/astroid/blob/4a7e23f33c2bafe002127f395150e28e09d6fe63/astroid/brain/brain_builtin_inference.py#L618
  3. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pylint-dev/astroid/blob/4a7e23f33c2bafe002127f395150e28e09d6fe63/astroid/interpreter/objectmodel.py#L397
  4. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pylint-dev/astroid/blob/4a7e23f33c2bafe002127f395150e28e09d6fe63/astroid/nodes/scoped_nodes/scoped_nodes.py#L1623

Effect on home-assistant:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/helpers/script.py#L1552
  2. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/helpers/template/extensions/math.py#L201
  3. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/helpers/template/extensions/math.py#L230
  4. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/helpers/template/extensions/math.py#L291
  5. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/lastfm/coordinator.py#L78
  6. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/lastfm/coordinator.py#L81
  7. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/ekeybionyx/config_flow.py#L96
  8. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/tplink_omada/config_flow.py#L201
  9. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/tuya/models.py#L133
  10. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/alexa/entities.py#L775
  11. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/alexa/entities.py#L792
  12. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/alexa/intent.py#L208
  13. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/alexa/intent.py#L221
  14. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/irm_kmi/weather.py#L139
  15. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/webmin/coordinator.py#L50
  16. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/elmax/config_flow.py#L426
  17. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/refoss/config_flow.py#L20
  18. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/motionblinds_ble/config_flow.py#L159
  19. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/pegel_online/config_flow.py#L60
  20. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/cloudflare/__init__.py#L122
  21. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/deako/__init__.py#L39
  22. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/openrgb/light.py#L139
  23. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/template/light.py#L653
  24. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/template/config_flow.py#L460
  25. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/template/helpers.py#L93
  26. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/zerproc/config_flow.py#L19
  27. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/suez_water/coordinator.py#L230
  28. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/roku/select.py#L125
  29. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/roku/browse_media.py#L124
  30. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/qbus/coordinator.py#L181
  31. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/qbus/climate.py#L89
  32. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/synology_dsm/common.py#L235
  33. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/vicare/fan.py#L149
  34. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/conversation/trigger.py#L58
  35. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/nextbus/coordinator.py#L56
  36. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/cloud/google_config.py#L332
  37. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/cloud/http_api.py#L518
  38. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/renault/config_flow.py#L106
  39. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/shopping_list/__init__.py#L266
  40. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/zwave_js/discovery_data_template.py#L487
  41. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/elvia/importer.py#L92
  42. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/elvia/importer.py#L111
  43. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/aws/notify.py#L286
  44. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/bang_olufsen/media_player.py#L351
  45. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/bang_olufsen/media_player.py#L453
  46. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/bang_olufsen/media_player.py#L489
  47. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/bang_olufsen/media_player.py#L955
  48. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/deconz/services.py#L193
  49. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/volvo/config_flow.py#L192
  50. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/matter/fan.py#L302
  51. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/mealie/todo.py#L126
  52. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/enocean/config_flow.py#L61
  53. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/stream/recorder.py#L105
  54. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/swiss_public_transport/helper.py#L45
  55. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/homee/light.py#L221
  56. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/homee/climate.py#L222
  57. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/homee/climate.py#L224
  58. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/assist_satellite/__init__.py#L200
  59. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/nmbs/config_flow.py#L46
  60. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/nmbs/sensor.py#L182
  61. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L155
  62. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L187
  63. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L195
  64. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L203
  65. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L211
  66. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L219
  67. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L229
  68. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L239
  69. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L247
  70. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L255
  71. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L265
  72. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L306
  73. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L345
  74. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L353
  75. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L425
  76. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/statistics/sensor.py#L1090
  77. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/websocket_api/http.py#L490
  78. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/kulersky/__init__.py#L50
  79. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/github/config_flow.py#L87
  80. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/greeneye_monitor/sensor.py#L109
  81. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/comelit/utils.py#L70
  82. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/jellyfin/browse_media.py#L148
  83. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/bryant_evolution/config_flow.py#L49
  84. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/bryant_evolution/config_flow.py#L69
  85. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/yolink/entity.py#L47
  86. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/here_travel_time/coordinator.py#L384
  87. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/waze_travel_time/coordinator.py#L79
  88. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/waze_travel_time/coordinator.py#L88
  89. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/waze_travel_time/coordinator.py#L122
  90. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/waze_travel_time/coordinator.py#L220
  91. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/cast/helpers.py#L310
  92. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/plex/__init__.py#L308
  93. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/smartthings/climate.py#L416
  94. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/myuplink/helpers.py#L26
  95. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/myuplink/helpers.py#L115
  96. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/system_bridge/binary_sensor.py#L34
  97. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/tankerkoenig/config_flow.py#L103
  98. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/aurora_abb_powerone/config_flow.py#L67
  99. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/heos/__init__.py#L52
  100. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/flick_electric/config_flow.py#L102
  101. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/gree/config_flow.py#L19
  102. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/rachio/switch.py#L140
  103. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/hisense_aehw4a1/config_flow.py#L14
  104. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/risco/coordinator.py#L96
  105. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/lifx/__init__.py#L241
  106. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/zone/__init__.py#L88
  107. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/energenie_power_sockets/config_flow.py#L49
  108. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/lg_soundbar/config_flow.py#L88
  109. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/smarttub/binary_sensor.py#L185
  110. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/tado/config_flow.py#L126
  111. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/vera/config_flow.py#L40
  112. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/unifiprotect/media_source.py#L299
  113. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/unifiprotect/media_source.py#L304
  114. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/unifiprotect/media_source.py#L313
  115. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/unifiprotect/media_source.py#L323
  116. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/unifiprotect/data.py#L280
  117. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/google_assistant/trait.py#L1231
  118. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/amberelectric/config_flow.py#L77
  119. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/amberelectric/coordinator.py#L98
  120. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/homekit_controller/device_trigger.py#L132
  121. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/homekit_controller/device_trigger.py#L236
  122. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/minecraft_server/sensor.py#L53
  123. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/sql/config_flow.py#L94
  124. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/sql/util.py#L48
  125. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/miele/diagnostics.py#L52
  126. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/miele/diagnostics.py#L84
  127. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/hue/v2/group.py#L323
  128. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/hue/v2/light.py#L123
  129. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/google_travel_time/sensor.py#L292
  130. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/automation/helpers.py#L17
  131. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/sonos/speaker.py#L336
  132. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/sonos/media_browser.py#L632
  133. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/eheimdigital/light.py#L47
  134. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/script/helpers.py#L17
  135. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/matrix/__init__.py#L502
  136. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/flipr/config_flow.py#L57
  137. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/flipr/config_flow.py#L57

The following messages are no longer emitted:

  1. import-private-name:
    Imported private module (_collections_abc)
    https://github.com/home-assistant/core/blob/ae84c7e15d70502c63f4c786486cb153d0b80aef/homeassistant/components/smlight/binary_sensor.py#L5

Effect on pygame:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pygame/pygame/blob/85fda3f719d437cf27106afae8c890e6b88ba5f5/src_py/cursors.py#L72
  2. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pygame/pygame/blob/85fda3f719d437cf27106afae8c890e6b88ba5f5/src_py/threads/__init__.py#L230

Effect on poetry-core:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/python-poetry/poetry-core/blob/6b67b60279ae0706bc2f4723075c6d810eac584c/src/poetry/core/masonry/utils/include.py#L44

Effect on black:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/black/linegen.py#L1296
  2. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/black/lines.py#L217
  3. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/black/lines.py#L902
  4. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/black/lines.py#L916
  5. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/black/comments.py#L227
  6. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/blackd/__init__.py#L241
  7. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/blib2to3/pytree.py#L930
  8. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/blib2to3/pytree.py#L935
  9. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/blib2to3/pgen2/parse.py#L104
  10. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/psf/black/blob/3a9b57f642df10a6f46a3e423e4b4e36f215fadc/src/blib2to3/pgen2/parse.py#L230

Effect on music21:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/spanner.py#L1718
  2. invalid-name:
    Attribute name "id" doesn't conform to '[a-z_][A-Za-z0-9_]{2,30}$' pattern
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/prebase.py#L277
  3. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/environment.py#L202
  4. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/expressions.py#L2177
  5. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/romanText/writeRoman.py#L228
  6. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/romanText/clercqTemperley.py#L412
  7. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/stream/tools.py#L169
  8. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/metadata/primitives.py#L510
  9. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/noteworthy/translate.py#L550
  10. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/noteworthy/translate.py#L807
  11. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/noteworthy/translate.py#L812
  12. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/figuredBass/realizer.py#L347
  13. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/musicxml/m21ToXml.py#L7132
  14. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/musicxml/archiveTools.py#L156
  15. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/audioSearch/__init__.py#L164

The following messages are no longer emitted:

  1. invalid-name:
    Attribute name "id" doesn't conform to '[a-z_][A-Za-z0-9_]{2,30}$' pattern
    https://github.com/cuthbertLab/music21/blob/e461154fce0d3675c78d73e847f73b9505561143/music21/base.py#L612

Effect on pytest:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pytest-dev/pytest/blob/c97a40140b2eca3ea45fcb1645d77da8cae3ee32/src/_pytest/main.py#L1018
  2. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pytest-dev/pytest/blob/c97a40140b2eca3ea45fcb1645d77da8cae3ee32/src/_pytest/assertion/rewrite.py#L862

Effect on django:
The following messages are now emitted:

  1. invalid-name:
    Attribute name "ALLOWED_HOSTS" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/test/utils.py#L141
  2. invalid-name:
    Attribute name "DEBUG" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/test/utils.py#L144
  3. invalid-name:
    Attribute name "EMAIL_BACKEND" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/test/utils.py#L147
  4. invalid-name:
    Attribute name "MIGRATION_MODULES" doesn't conform to snake_case naming style
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/db/backends/base/creation.py#L79
  5. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/contrib/admin/filters.py#L112
  6. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/core/files/storage/memory.py#L121
  7. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/core/management/commands/makemigrations.py#L273
  8. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/db/models/functions/json.py#L24
  9. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/django/django/blob/bee64561a6e8cd22995c2b1254bab66dae892a6d/django/db/backends/mysql/creation.py#L24

Effect on pandas:
The following messages are now emitted:

  1. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L374
  2. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L755
  3. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L791
  4. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L970
  5. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L970
  6. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L1203
  7. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L1212
  8. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L1347
  9. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/apply.py#L1500
  10. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/construction.py#L339
  11. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/construction.py#L658
  12. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/indexing.py#L836
  13. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/indexing.py#L856
  14. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/missing.py#L256
  15. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/algorithms.py#L451
  16. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/algorithms.py#L523
  17. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/algorithms.py#L843
  18. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/algorithms.py#L1697
  19. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/sorting.py#L700
  20. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/generic.py#L5611
  21. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/generic.py#L10683
  22. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/generic.py#L10898
  23. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/common.py#L147
  24. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L1916
  25. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L2284
  26. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L2365
  27. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L3915
  28. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L4540
  29. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L6050
  30. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L9159
  31. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L10249
  32. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L11525
  33. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L11929
  34. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L12012
  35. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L12069
  36. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L12123
  37. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L13792
  38. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L13805
  39. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/frame.py#L13834
  40. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L1018
  41. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L1742
  42. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L2006
  43. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L2561
  44. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L2705
  45. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L2741
  46. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L3092
  47. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/resample.py#L3123
  48. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/series.py#L2688
  49. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/series.py#L2745
  50. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/window/common.py#L28
  51. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/window/rolling.py#L477
  52. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/_numba/extensions.py#L495
  53. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/_numba/executor.py#L83
  54. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/_numba/executor.py#L108
  55. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/_numba/executor.py#L236
  56. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/_numba/executor.py#L241
  57. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/dtypes/concat.py#L277
  58. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/dtypes/common.py#L1897
  59. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/construction.py#L335
  60. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/construction.py#L495
  61. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/construction.py#L587
  62. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/construction.py#L761
  63. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/concat.py#L91
  64. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L281
  65. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L567
  66. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L592
  67. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L684
  68. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L1631
  69. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L1741
  70. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L1812
  71. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/internals/managers.py#L2120
  72. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/strings/accessor.py#L352
  73. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/strings/object_array.py#L98
  74. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/indexes/range.py#L595
  75. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/indexes/range.py#L904
  76. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/indexes/range.py#L1058
  77. use-implicit-booleaness-not-len:
    Do not use len(SEQUENCE) without comparison to determine if a sequence is empty
    https://github.com/pandas-dev/pandas/blob/641ebf417d26906599d66c280d88a3fe1afd7eb3/pandas/core/index...

This comment was truncated because GitHub allows only 65536 characters in a comment.

This comment was generated for commit 4aacb64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

False Negative 🦋 No message is emitted but something is wrong with the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand to use-implicit-booleaness-not-len to catch len(iterable) == 0 and >0

2 participants