fix(api): Incorrect type reference in AbstractGenerator

This commit is contained in:
TheOnlyWayUp
2025-06-09 14:21:53 +00:00
parent 80be6e0b32
commit 7c3e02f347
+2 -2
View File
@@ -1,5 +1,5 @@
from io import BytesIO from io import BytesIO
from tempfile import NamedTemporaryFile from tempfile import _TemporaryFileWrapper
from typing import List, Literal from typing import List, Literal
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
@@ -30,7 +30,7 @@ class AbstractGenerator:
self.cover = cover self.cover = cover
self.images = images self.images = images
self.book: EpubBook | NamedTemporaryFile = None self.book: EpubBook | _TemporaryFileWrapper = None # type: ignore
def compile(self) -> Literal[True]: def compile(self) -> Literal[True]:
"""Compile the part trees into the corresponding in-memory representation of the generator format. """Compile the part trees into the corresponding in-memory representation of the generator format.