Commit 235f69e
chore: hoist lazy import struct to module level in tuples.py
The V1 params tuple encode/decode paths had `import struct` inside
function bodies, unlike every other module that imports struct at the
top level. Hoisted to module level for consistency and to avoid the
sys.modules lookup on every V1 call.
Closes #135
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 21d233c commit 235f69e
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
0 commit comments