Skip to content

Commit 2080202

Browse files
wolfram77Lucas-C
andauthored
Update pdfly/extract_annotated_pages.py
Seems that the `| None` syntax is not valid with Python 3.8 Co-authored-by: Lucas Cimon <[email protected]>
1 parent 2e4bf78 commit 2080202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfly/extract_annotated_pages.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def is_manipulable(annot) -> bool:
1515

1616

1717
# Main function.
18-
def main(input_pdf: Path, output_pdf: Path | None) -> None:
18+
def main(input_pdf: Path, output_pdf: Optional[Path]) -> None:
1919
if not output_pdf:
2020
output_pdf = input_pdf.with_name(input_pdf.stem + "_annotated.pdf")
2121
input = PdfReader(input_pdf)

0 commit comments

Comments
 (0)