MCPcopy Create free account
hub / github.com/FastLED/FastLED / _make_board_map

Function _make_board_map

ci/boards.py:1301–1309  ·  view source on GitHub ↗
(boards: list[Board])

Source from the content-addressed store, hash-verified

1299
1300
1301def _make_board_map(boards: list[Board]) -> dict[str, Board]:
1302 # make board map, but assert on duplicate board names
1303 board_map: dict[str, Board] = {}
1304 for board in boards:
1305 assert board.board_name not in board_map, (
1306 f"Duplicate board name: {board.board_name}"
1307 )
1308 board_map[board.board_name] = board
1309 return board_map
1310
1311
1312_BOARD_MAP: dict[str, Board] = _make_board_map(ALL)

Callers 1

boards.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected