(self, row: int, col: int)
| 534 | return code |
| 535 | |
| 536 | def active_with_neighbors(self, row: int, col: int) -> ActiveWithNeighbors: |
| 537 | context: list[bool] = [] |
| 538 | for r in range(row - 1, row + 2): |
| 539 | for c in range(col - 1, col + 2): |
| 540 | context.append(self.is_constrained(r, c) and bool(self.modules[r][c])) |
| 541 | return ActiveWithNeighbors(*context) |
no test coverage detected