Skip to content

Commit c0d3c91

Browse files
evidencebpniklasf
authored andcommitted
chess\__init__.py superfluous-parens
There are two such alerts in this file. One has two terms and the parentheses do not contribute to readability. The other term is longer and the parenthesis help to readability and therefore are kept.
1 parent 0e7fabc commit c0d3c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chess/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3402,7 +3402,7 @@ def clean_castling_rights(self) -> Bitboard:
34023402
if white_h_side and msb(white_h_side) < msb(white_king_mask):
34033403
white_h_side = 0
34043404

3405-
black_a_side = (black_castling & -black_castling)
3405+
black_a_side = black_castling & -black_castling
34063406
black_h_side = BB_SQUARES[msb(black_castling)] if black_castling else BB_EMPTY
34073407

34083408
if black_a_side and msb(black_a_side) > msb(black_king_mask):

0 commit comments

Comments
 (0)