MCPcopy Index your code
hub / github.com/lincolnloop/python-qrcode / active_with_neighbors

Method active_with_neighbors

qrcode/main.py:536–541  ·  view source on GitHub ↗
(self, row: int, col: int)

Source from the content-addressed store, hash-verified

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)

Callers 1

drawrect_contextMethod · 0.80

Calls 2

is_constrainedMethod · 0.95
ActiveWithNeighborsClass · 0.85

Tested by

no test coverage detected