implemented text recognition (ocr) #658
Annotations
9 errors and 4 warnings
Analysing the code with Pyright:
src/AutoSplit.py#L953
No overloads for "__init__" match the provided arguments (reportCallIssue)
|
Analysing the code with Pyright:
src/AutoSplit.py#L954
Argument of type "memoryview" cannot be assigned to parameter "data" of type "bytes" in function "__init__"
"memoryview" is incompatible with "bytes"
Set disableBytesTypePromotions to false to enable type promotion behavior for "bytearray" and "memoryview" (reportArgumentType)
|
Analysing the code with Pyright:
src/AutoSplit.py#L954
Unnecessary "# pyright: ignore" rule: "reportGeneralTypeIssues"
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L174
Object of type "None" is not subscriptable (reportOptionalSubscript)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L174
Argument type is partially unknown
Argument corresponds to parameter "capture" in function "extract_and_compare_text"
Argument type is "ndarray[Any, dtype[generic]] | Unknown" (reportUnknownArgumentType)
|
Analysing the code with Pyright:
src/compare.py#L153
Type of "image_to_string" is partially unknown
Type of "image_to_string" is "(image: Unknown, lang: Unknown | None = None, config: str = '', nice: int = 0, output_type: str = Output.STRING, timeout: int = 0) -> (bytes | str | dict[str, bytes | str])" (reportUnknownMemberType)
|
Analysing the code with Pyright:
src/compare.py#L153
Type of "fromarray" is partially unknown
Type of "fromarray" is "(obj: Unknown, mode: str | None = None) -> Image" (reportUnknownMemberType)
|
Analysing the code with Pyright:
src/compare.py#L155
Type of "ratio" is partially unknown
Type of "ratio" is "(s1: Sequence[Hashable], s2: Sequence[Hashable], *, processor: ((...) -> Unknown) | None = None, score_cutoff: float | None = None) -> float" (reportUnknownMemberType)
|
Analysing the code with Pyright
8 errors
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, jakebailey/pyright-action@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Analysing the code with Pyright:
src/AutoSplit.py#L286
Conditional expression references function which always evaluates to True (reportUnnecessaryComparison)
|
Analysing the code with Pyright:
src/AutoSplitImage.py#L173
Condition will always evaluate to True since the types "str" and "None" have no overlap (reportUnnecessaryComparison)
|
Analysing the code with Pyright:
src/compare.py#L11
Stub file not found for "pytesseract" (reportMissingTypeStubs)
|
The logs for this run have expired and are no longer available.
Loading