Skip to content

Commit

Permalink
Remove 'security' from Info.all() method return (#135)
Browse files Browse the repository at this point in the history
* FIX issue with `InfoAllDict` typed dict

* CUT 'security' from `Info.all()` return because it contains unserializable objects
  • Loading branch information
sfneal authored Aug 28, 2024
1 parent 773306e commit 831530f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pdfconduit/utils/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def all(self) -> InfoAllDict:
"encrypted": self.encrypted,
"pages": self.pages,
"metadata": self.metadata,
"security": self.security,
"size": self.size,
"rotate": self.rotate,
"permissions": self.permissions,
Expand Down
1 change: 0 additions & 1 deletion pdfconduit/utils/typing/info/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class InfoAllDict(TypedDict):
encrypted: bool
pages: int
metadata: Metadata
security: SecurityDict
size: SizeTuple
rotate: int
permissions: Optional[Permissions]
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from pdfconduit import Info, Pdfconduit
from pdfconduit.utils import add_suffix
from pdfconduit.utils.typing.info import InfoAllDict
from tests import PdfconduitTestCase, get_clean_pdf_name
from tests import test_data_path

Expand Down

0 comments on commit 831530f

Please sign in to comment.