Skip to content

Commit 4aacb64

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 46439c9 commit 4aacb64

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

doc/data/messages/u/use-implicit-booleaness-not-len/bad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
print("has items")
1212

1313
if len(fruits) != 0: # [use-implicit-booleaness-not-len]
14-
print("not empty")
14+
print("not empty")

doc/data/messages/u/use-implicit-booleaness-not-len/good.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
print("has items")
1212

1313
if fruits:
14-
print("not empty")
14+
print("not empty")

pylint/checkers/refactoring/implicit_booleaness_checker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ def _get_len_comparison_suggestion(
497497
) -> str | None:
498498
"""Get the appropriate suggestion for len() comparisons with zero."""
499499
len_arg_name = len_arg.as_string()
500-
500+
501501
# Helper to get the appropriate positive suggestion
502502
def get_positive_suggestion() -> str:
503503
return (

test_original_issue.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)