fix(api): Incorrect type reference in AbstractGenerator
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user