Skip to content

Commit bd15543

Browse files
committed
fix docstring
1 parent f5eba65 commit bd15543

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

unpythonic/syntax/monadic_do.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ def _monadic_do(block_body: list, monad_type: expr, result_name: str) -> list:
137137

138138

139139
def _is_binding_form(item) -> bool:
140-
"""Return True if *item* is ``name := expr`` or ``name << expr`` (a let-style binding).
141-
142-
Two nested ``if``s (rather than a single combined expression) keep the two
143-
binding-syntax variants visually separate and easy to scan at the use site.
144-
"""
140+
"""Return True if *item* is ``name := expr`` or ``name << expr`` (a let-style binding)."""
145141
if type(item) is NamedExpr and type(item.target) is Name:
146142
return True
147143
if type(item) is BinOp and type(item.op) is LShift and type(item.left) is Name: # noqa: SIM103 -- keep cases visually separate

0 commit comments

Comments
 (0)