mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 10:46:54 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
53ced94ff4
commit
66f83405dd
1 changed files with 2 additions and 2 deletions
|
|
@ -270,9 +270,9 @@ def parse_unified_diff(diff: Optional[str] = None) -> Dict[str, Set[int]]:
|
|||
# So we can more simply check for a match instead of slicing and
|
||||
# comparing.
|
||||
if hunk_match:
|
||||
(row, number_of_rows) = [
|
||||
(row, number_of_rows) = (
|
||||
1 if not group else int(group) for group in hunk_match.groups()
|
||||
]
|
||||
)
|
||||
assert current_path is not None
|
||||
parsed_paths[current_path].update(range(row, row + number_of_rows))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue