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

Method is_constrained

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

Source from the content-addressed store, hash-verified

388
389 # return true if and only if (row, col) is in the module
390 def is_constrained(self, row: int, col: int) -> bool:
391 return (
392 row >= 0
393 and row < len(self.modules)
394 and col >= 0
395 and col < len(self.modules[row])
396 )
397
398 def setup_timing_pattern(self):
399 for r in range(8, self.modules_count - 8):

Callers 1

active_with_neighborsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected