Skip to content

Commit

Permalink
Satisfy Mypy with strange Black import
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Jan 5, 2023
1 parent 224500b commit 582fa74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/darker/linewise_black.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
from typing import Generator, List

from black import decode_bytes, detect_target_versions, get_future_imports
# `FileMode as Mode` required to satisfy mypy==0.782. Strange.
from black import FileMode as Mode
from black.comments import normalize_fmt_off
from black.linegen import LineGenerator, transform_line
from black.lines import EmptyLineTracker, Line
from black.mode import Feature, Mode, supports_feature
from black.mode import Feature, supports_feature
from black.parsing import lib2to3_parse


Expand Down

0 comments on commit 582fa74

Please sign in to comment.