Skip to content

Commit

Permalink
PPF-738: using more consistent var name
Browse files Browse the repository at this point in the history
  • Loading branch information
chinapandaman committed Sep 28, 2024
1 parent 16615d5 commit bd836da
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 @@ -160,16 +160,16 @@ def simple_flatten_generic(annot: DictionaryObject) -> None:
)


def update_annotation_name(annot: DictionaryObject, key: str) -> None:
def update_annotation_name(annot: DictionaryObject, val: str) -> None:
"""Patterns to update the name of an annotation."""

if Parent in annot and T not in annot:
annot[NameObject(Parent)][NameObject(T)] = TextStringObject( # noqa
key
val
)
else:
annot[NameObject(T)] = TextStringObject( # noqa
key
val
)


Expand Down

0 comments on commit bd836da

Please sign in to comment.