From cb6f2198b8fc700f8cc0d36c338d613e509250f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Langa?= Date: Fri, 21 Aug 2020 15:46:00 +0200 Subject: [PATCH] Use properly renamed function name in docs --- docs/reference/reference_functions.rst | 2 +- src/black/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/reference_functions.rst b/docs/reference/reference_functions.rst index 1beecc1..a718411 100644 --- a/docs/reference/reference_functions.rst +++ b/docs/reference/reference_functions.rst @@ -171,7 +171,7 @@ Utilities .. autofunction:: black.re_compile_maybe_verbose -.. autofunction:: black.should_explode +.. autofunction:: black.should_split_body_explode .. autofunction:: black.shutdown diff --git a/src/black/__init__.py b/src/black/__init__.py index 8d0c70f..faa88b3 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -5559,7 +5559,7 @@ def ensure_visible(leaf: Leaf) -> None: def should_split_body_explode(line: Line, opening_bracket: Leaf) -> bool: - """Should `line` immediately be split with `delimiter_split()` after RHS?""" + """Should `line` be immediately split with `delimiter_split()` after RHS?""" if not (opening_bracket.parent and opening_bracket.value in "[{("): return False -- 2.39.2