diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 89fec3b14..88d765303 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -36,6 +36,7 @@ history and [GitHub's 'Contributors' feature](https://github.com/py-pdf/pypdf/gr * [maxbeer99](https://github.com/maxbeer99) * [McNeil, Karen](https://github.com/karenlmcneil): Arabic Language Support * [Mérino, Antoine](https://github.com/Merinorus) +* [Murphy, Kevin](https://github.com/kmurphy4) * [nalin-udhaar](https://github.com/nalin-udhaar) * [Paramonov, Alexey](https://github.com/alexey-v-paramonov) * [Paternault, Louis](https://framagit.org/spalax) diff --git a/pypdf/_page.py b/pypdf/_page.py index e7fb1dc8c..d5de76f77 100644 --- a/pypdf/_page.py +++ b/pypdf/_page.py @@ -765,7 +765,7 @@ def _get_inline_images(self) -> Dict[str, ImageFile]: ) elif ope in (b"BI", b"EI", b"ID"): # pragma: no cover raise PdfReadError( - f"{ope} operator met whereas not expected," + f"{ope!r} operator met whereas not expected," "please share usecase with pypdf dev team" ) """backup diff --git a/pypdf/generic/_data_structures.py b/pypdf/generic/_data_structures.py index 6fc2e7db7..e525b8786 100644 --- a/pypdf/generic/_data_structures.py +++ b/pypdf/generic/_data_structures.py @@ -1401,7 +1401,7 @@ def set_data(self, data: bytes) -> None: self._operations = [] @property - def operations(self) -> List[Tuple[Any, Any]]: + def operations(self) -> List[Tuple[Any, bytes]]: if not self._operations and self._data: self._parse_content_stream(BytesIO(self._data)) self._data = b""