Skip to content

Commit

Permalink
Pretend to be in preview mode for diff-shades
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFryers committed Feb 21, 2022
1 parent 52a36b5 commit 3895c4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/black/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def lines_with_leading_tabs_expanded(s: str) -> List[str]:

def fix_docstring(docstring: str, prefix: str, *, preview: bool) -> str:
# https://www.python.org/dev/peps/pep-0257/#handling-docstring-indentation
preview = True
if not docstring:
return ""
lines = lines_with_leading_tabs_expanded(docstring)
Expand Down

0 comments on commit 3895c4d

Please sign in to comment.