mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 09:40:30 +08:00
chore: remove redundant pdf parser type ignores
This commit is contained in:
@@ -52,10 +52,10 @@ class PDFParser(BaseParser):
|
||||
continue
|
||||
|
||||
resources = page["/Resources"]
|
||||
if not resources or "/XObject" not in resources: # type: ignore
|
||||
if not resources or "/XObject" not in resources:
|
||||
continue
|
||||
|
||||
xobjects = resources["/XObject"].get_object() # type: ignore
|
||||
xobjects = resources["/XObject"].get_object()
|
||||
if not xobjects:
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user