Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lincolnloop/python-qrcode
/ mode_sizes_for_version
Function
mode_sizes_for_version
qrcode/util.py:164–170 ·
view source on GitHub ↗
(version)
Source
from the content-addressed store, hash-verified
162
163
164
def
mode_sizes_for_version(version):
165
if
version < 10:
166
return
MODE_SIZE_SMALL
167
elif
version < 27:
168
return
MODE_SIZE_MEDIUM
169
else
:
170
return
MODE_SIZE_LARGE
171
172
173
def
length_in_bits(mode, version):
Callers
1
length_in_bits
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected