Skip to content

Commit 5535067

Browse files
committed
Simplify SVG board fill example for Python 3.8 compat (fixes #936)
1 parent feb8c82 commit 5535067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chess/svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def board(board: Optional[chess.BaseBoard] = None, *,
280280
>>>
281281
>>> chess.svg.board(
282282
... board,
283-
... fill=dict.fromkeys(board.attacks(chess.E4), "#cc0000cc") | {chess.E4: "#00cc00cc"},
283+
... fill=dict.fromkeys(board.attacks(chess.E4), "#cc0000cc"),
284284
... arrows=[chess.svg.Arrow(chess.E4, chess.F6, color="#0000cccc")],
285285
... squares=chess.SquareSet(chess.BB_DARK_SQUARES & chess.BB_FILE_B),
286286
... size=350,

0 commit comments

Comments
 (0)