Commit 64a3159
committed
fix(types): align ParsePageRef TypedDict shape with its docstring
The docstring promises pageIndex/width/height are always populated and
only pageNumber may be absent, but the class was declared `total=False`,
which contradicts that and forces type-strict callers to guard every
subscript access on guaranteed-present fields. Switch to the default
(`total=True`) shape with pageNumber explicitly `NotRequired`, matching
the precedent set by ParseBounds in the same module.
No runtime impact — the wire already populates these fields.1 parent 265c9c1 commit 64a3159
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | 87 | | |
89 | 88 | | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
0 commit comments