Skip to content

Commit

Permalink
PPF-502: fix type hint for value
Browse files Browse the repository at this point in the history
  • Loading branch information
chinapandaman committed Feb 16, 2024
1 parent 778225e commit ddfb172
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions PyPDFForm/middleware/signature.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Contains signature middleware."""

from typing import Union
from typing import BinaryIO, Union
from os.path import expanduser

from .adapter import fp_or_f_obj_or_stream_to_stream
Expand All @@ -14,7 +14,7 @@ class Signature(Widget):
def __init__(
self,
name: str,
value: str = None,
value: Union[bytes, str, BinaryIO] = None,
) -> None:
"""Constructs all attributes for the signature field."""

Expand Down
4 changes: 2 additions & 2 deletions PyPDFForm/middleware/widget.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""Contains widget middleware."""

from typing import Any, Union
from typing import Any


class Widget:
Expand All @@ -10,7 +10,7 @@ class Widget:
def __init__(
self,
name: str,
value: Union[str, bool, int] = None,
value: Any = None,
) -> None:
"""Constructs basic attributes for the object."""

Expand Down

0 comments on commit ddfb172

Please sign in to comment.