X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0a833b4b14953f98e81d632281a75318faa66170..97c24664c5bc251f7b67756b8b184962ca44b6d9:/src/black/__init__.py diff --git a/src/black/__init__.py b/src/black/__init__.py index 00d3729..99afc7d 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -5613,7 +5613,12 @@ def maybe_make_parens_invisible_in_atom(node: LN, parent: LN) -> bool: return False if is_walrus_assignment(node): - if parent.type in [syms.annassign, syms.expr_stmt]: + if parent.type in [ + syms.annassign, + syms.expr_stmt, + syms.assert_stmt, + syms.return_stmt, + ]: return False first = node.children[0]