Address review comments #21
5 errors
Mypy found 5 errors
Annotations
Check failure on line 99 in src/darker/diff.py
github-actions / Mypy
src/darker/diff.py#L99
Argument 1 to "validate_opcodes" has incompatible type "list[tuple[str, int, int, int, int]]"; expected "list[tuple[Literal['replace', 'delete', 'insert', 'equal'], int, int, int, int]]" [arg-type]
Check failure on line 142 in src/darker/diff.py
github-actions / Mypy
src/darker/diff.py#L142
Argument 1 to "validate_opcodes" has incompatible type "list[tuple[str, int, int, int, int]]"; expected "list[tuple[Literal['replace', 'delete', 'insert', 'equal'], int, int, int, int]]" [arg-type]
Check failure on line 173 in src/darker/diff.py
github-actions / Mypy
src/darker/diff.py#L173
Argument 1 to "opcodes_to_chunks" has incompatible type "list[tuple[Literal['replace', 'delete', 'insert', 'equal'], int, int, int, int]]"; expected "list[tuple[str, int, int, int, int]]" [arg-type]
Check failure on line 233 in src/darker/git.py
github-actions / Mypy
src/darker/git.py#L233
Argument 1 to "opcodes_to_edit_linenums" has incompatible type "list[tuple[Literal['replace', 'delete', 'insert', 'equal'], int, int, int, int]]"; expected "list[tuple[str, int, int, int, int]]" [arg-type]
Check failure on line 26 in src/darker/tests/test_diff.py
github-actions / Mypy
src/darker/tests/test_diff.py#L26
Argument 1 to "opcodes_to_chunks" has incompatible type "list[tuple[Literal['replace', 'delete', 'insert', 'equal'], int, int, int, int]]"; expected "list[tuple[str, int, int, int, int]]" [arg-type]