Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mypy typechecks #32

Merged
merged 2 commits into from
Jul 20, 2024
Merged

Conversation

jandom
Copy link
Contributor

@jandom jandom commented Jul 20, 2024

Still work in progress! Down to last few checks

qreader.py:72: error: Argument "blur_kernel_sizes" to "DecodeQRResult" has incompatible type "tuple[tuple[int, int], ...] | None"; expected "tuple[tuple[int, int]] | None"  [arg-type]
qreader.py:85: error: Incompatible default for argument "reencode_to" (default has type "tuple[str, str]", argument has type "str | tuple[str] | list[str] | None")  [assignment]
qreader.py:122: error: Incompatible types in assignment (expression has type "tuple[str] | list[str]", variable has type "tuple[str, ...]")  [assignment]
qreader.py:225: error: Incompatible return value type (got "tuple[tuple[str | None, ...], tuple[dict[str, ndarray[Any, Any] | float | tuple[float | int, float | int]]]]", expected "tuple[dict[str, ndarray[Any, Any] | float | tuple[float | int, float | int]], str | None] | tuple[str | None, ...]")  [return-value]
qreader.py:231: error: "list" expects 1 type argument, but 2 given  [type-arg]
qreader.py:338: error: Unsupported operand types for - ("int" and "ndarray[Any, dtype[generic]]")  [operator]
qreader.py:359: error: Argument "blur_kernel_sizes" to "__threshold_and_blur_decodings" of "QReader" has incompatible type "tuple[tuple[int, int], tuple[int, int]]"; expected "tuple[tuple[int, int]]"  [arg-type]
Found 7 errors in 1 file (checked 1 source file)

@Eric-Canas Eric-Canas merged commit 3ecc8a6 into Eric-Canas:main Jul 20, 2024
2 of 3 checks passed
@jandom
Copy link
Contributor Author

jandom commented Jul 20, 2024

Hahah, this wasn't quite ready yet but it was progress so still good – thx @Eric-Canas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants