Removes support for Python 3.8 and lower from the code base

This commit is contained in:
Trenton Holmes
2023-09-09 09:08:55 -07:00
committed by Trenton H
parent c8bfbb9315
commit 650c816a7b
34 changed files with 195 additions and 337 deletions

View File

@@ -1,7 +1,6 @@
import re
from html import escape
from pathlib import Path
from typing import List
import httpx
from bleach import clean
@@ -355,7 +354,7 @@ class MailDocumentParser(DocumentParser):
def generate_pdf_from_html(
self,
orig_html: str,
attachments: List[MailAttachment],
attachments: list[MailAttachment],
) -> Path:
"""
Generates a PDF file based on the HTML and attachments of the email