epy icon indicating copy to clipboard operation
epy copied to clipboard

Unhappy mypy (4 errors)

Open mcepl opened this issue 10 months ago • 0 comments

src/epy_reader/ebooks/fictionbook.py:51: error: "object" has no attribute "find"  [attr-defined]
src/epy_reader/reader.py:790: error: Incompatible return value type (got "tuple[TextStructure, tuple[TocEntry, ...], tuple[str | Element]]", expected "tuple[TextStructure, tuple[TocEntry, ...], tuple[str, ...] | tuple[Element, ...]]")  [return-value]
src/epy_reader/reader.py:804: error: Incompatible return value type (got "tuple[tuple[str, ...] | TextStructure, tuple[TocEntry, ...], tuple[str, ...] | tuple[Element, ...]]", expected "tuple[TextStructure, tuple[TocEntry, ...], tuple[str, ...] | tuple[Element, ...]]")  [return-value]
src/epy_reader/reader.py:896: error: Item "NoUpdate" of "Any | NoUpdate" has no attribute "char"  [union-attr]
Found 4 errors in 2 files (checked 27 source files)

mcepl avatar Mar 11 '25 21:03 mcepl