diff --git a/pypdf/_writer.py b/pypdf/_writer.py index 25bccb042..574a23054 100644 --- a/pypdf/_writer.py +++ b/pypdf/_writer.py @@ -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):