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 Aug 23, 2024
1 parent 075bb4c commit 7797d48
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions PyPDFForm/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from pypdf.generic import (DictionaryObject, NameObject, NumberObject,
TextStringObject)

from .constants import (AP, AS, CA, DA, DV, FT, IMAGE_FIELD_IDENTIFIER, JS, MK, MULTILINE,
READ_ONLY, A, Btn, Ch, Ff, N, Off, Opt, Parent, Q, Sig,
T, Tx, V, Yes)
from .constants import (AP, AS, CA, DA, DV, FT, IMAGE_FIELD_IDENTIFIER, JS, MK,
MULTILINE, READ_ONLY, A, Btn, Ch, Ff, N, Off, Opt,
Parent, Q, Sig, T, Tx, V, Yes)
from .middleware.checkbox import Checkbox
from .middleware.dropdown import Dropdown
from .middleware.image import Image
Expand Down
4 changes: 3 additions & 1 deletion PyPDFForm/widgets/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def __init__(

for each in self.ALLOWED_NON_ACRO_FORM_PARAMS:
if each in kwargs:
self.non_acro_form_params.append(((type(self).__name__, each), kwargs.get(each)))
self.non_acro_form_params.append(
((type(self).__name__, each), kwargs.get(each))
)

def watermarks(self, stream: bytes) -> List[bytes]:
"""Returns a list of watermarks after creating the widget."""
Expand Down
4 changes: 3 additions & 1 deletion tests/test_create_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ def test_create_text_align_right(template_stream, pdf_samples, request):


def test_create_text_align_multiline(template_stream, pdf_samples, request):
expected_path = os.path.join(pdf_samples, "widget", "create_text_align_multiline.pdf")
expected_path = os.path.join(
pdf_samples, "widget", "create_text_align_multiline.pdf"
)
with open(expected_path, "rb+") as f:
obj = PdfWrapper(template_stream).create_widget(
"text",
Expand Down

0 comments on commit 7797d48

Please sign in to comment.