Skip to content

Address review comments #21

Address review comments

Address review comments #21

GitHub Actions / Mypy failed Jul 29, 2024 in 0s

5 errors

Mypy found 5 errors

Annotations

Check failure on line 99 in src/darker/diff.py

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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

See this annotation in the file changed.

@github-actions 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]