mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Added type hint
This commit is contained in:
parent
ae25d23c34
commit
6883018725
|
@ -229,6 +229,7 @@ def test_pdf_append_fails_on_nonexistent_file() -> None:
|
||||||
|
|
||||||
|
|
||||||
def check_pdf_pages_consistency(pdf: PdfParser.PdfParser) -> None:
|
def check_pdf_pages_consistency(pdf: PdfParser.PdfParser) -> None:
|
||||||
|
assert pdf.pages_ref is not None
|
||||||
pages_info = pdf.read_indirect(pdf.pages_ref)
|
pages_info = pdf.read_indirect(pdf.pages_ref)
|
||||||
assert b"Parent" not in pages_info
|
assert b"Parent" not in pages_info
|
||||||
assert b"Kids" in pages_info
|
assert b"Kids" in pages_info
|
||||||
|
|
Loading…
Reference in New Issue
Block a user