Skip to content

Commit

Permalink
Simplify SVG board fill example for Python 3.8 compat (fixes #936)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Nov 22, 2022
1 parent feb8c82 commit 5535067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chess/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def board(board: Optional[chess.BaseBoard] = None, *,
>>>
>>> chess.svg.board(
... board,
... fill=dict.fromkeys(board.attacks(chess.E4), "#cc0000cc") | {chess.E4: "#00cc00cc"},
... fill=dict.fromkeys(board.attacks(chess.E4), "#cc0000cc"),
... arrows=[chess.svg.Arrow(chess.E4, chess.F6, color="#0000cccc")],
... squares=chess.SquareSet(chess.BB_DARK_SQUARES & chess.BB_FILE_B),
... size=350,
Expand Down

0 comments on commit 5535067

Please sign in to comment.