diff --git a/pypdf/_utils.py b/pypdf/_utils.py index 9756536980..38c0d67d7a 100644 --- a/pypdf/_utils.py +++ b/pypdf/_utils.py @@ -336,7 +336,7 @@ def mark_location(stream: StreamType) -> None: stream.seek(-radius, 1) -B_CACHE: Dict[Union[str, bytes], bytes] = {} +B_CACHE: Dict[str, bytes] = {} def b_(s: Union[str, bytes]) -> bytes: