Skip to content

Commit 31cba90

Browse files
committed
Fix new mypy error in PdfParser
1 parent cf6b1b4 commit 31cba90

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/PIL/PdfParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def interpret_name(cls, raw: bytes, as_text: bool = False) -> str | bytes:
826826
@classmethod
827827
def get_value(
828828
cls,
829-
data: bytes | bytearray | mmap.mmap,
829+
data: bytes | bytearray | memoryview | mmap.mmap,
830830
offset: int,
831831
expect_indirect: IndirectReference | None = None,
832832
max_nesting: int = -1,
@@ -987,7 +987,7 @@ def get_value(
987987

988988
@classmethod
989989
def get_literal_string(
990-
cls, data: bytes | bytearray | mmap.mmap, offset: int
990+
cls, data: bytes | bytearray | memoryview | mmap.mmap, offset: int
991991
) -> tuple[bytes, int]:
992992
nesting_depth = 0
993993
result = bytearray()

0 commit comments

Comments
 (0)