Skip to content

Commit

Permalink
STY: Tiny refactor
Browse files Browse the repository at this point in the history
Functions insert_blank_page and _pdf_objectify.
  • Loading branch information
j-t-1 authored Oct 14, 2024
1 parent da40ed6 commit d34762f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypdf/_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3234,7 +3234,7 @@ def _set_page_label(
self._root_object[NameObject(CatalogDictionary.PAGE_LABELS)] = page_labels


def _pdf_objectify(obj: Union[Dict[str, Any], str, int, float, List[Any]]) -> PdfObject:
def _pdf_objectify(obj: Union[Dict[str, Any], str, int, List[Any]]) -> PdfObject:
if isinstance(obj, PdfObject):
return obj
if isinstance(obj, dict):
Expand Down

0 comments on commit d34762f

Please sign in to comment.