Skip to content

Commit

Permalink
[skip ci]: black/isort
Browse files Browse the repository at this point in the history
  • Loading branch information
black-isort-bot committed Mar 28, 2024
1 parent 3523d55 commit 804efba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PyPDFForm/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from pypdf.generic import (DictionaryObject, NameObject, NumberObject,
TextStringObject)

from .constants import (AP, AS, CA, D, DA, FT, MK, READ_ONLY, Btn, Ch, Ff, Opt,
Parent, Q, Sig, Subtype, T, Tx, V, Widget, Yes, Off)
from .constants import (AP, AS, CA, DA, FT, MK, READ_ONLY, Btn, Ch, D, Ff, Off,
Opt, Parent, Q, Sig, Subtype, T, Tx, V, Widget, Yes)
from .middleware.checkbox import Checkbox
from .middleware.dropdown import Dropdown
from .middleware.radio import Radio
Expand Down Expand Up @@ -89,7 +89,7 @@ def simple_update_checkbox_value(annot: DictionaryObject) -> None:
def simple_update_radio_value(annot: DictionaryObject) -> None:
"""Patterns to update values for radio annotations."""

for each in annot[AP][D]: # noqa
for each in annot[AP][D]: # noqa
if str(each) != Off:
annot[NameObject(AS)] = NameObject(each)
break
Expand Down

0 comments on commit 804efba

Please sign in to comment.