Skip to content

Commit 61bb49b

Browse files
Proper type hints for the states
Co-authored-by: pubpub-zz <[email protected]>
1 parent 87d892f commit 61bb49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pypdf/_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def _build_field(
647647
if "/Off" not in retval[key]["/_States_"]:
648648
retval[key][NameObject("/_States_")].append(NameObject("/Off"))
649649
elif obj.get(FA.FT, "") == "/Btn" and obj.get(FA.Ff, 0) & FA.FfBits.Radio != 0:
650-
states = []
650+
states: List[str] = []
651651
retval[key][NameObject("/_States_")] = ArrayObject(states)
652652
for k in obj.get(FA.Kids, {}):
653653
k = k.get_object()

0 commit comments

Comments
 (0)