X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/15d5e36ea38988084584639b02aafcaaa2744dcf..0a340e1f227c3705ed1b0dbbbf634c98e2e82ada:/black.py diff --git a/black.py b/black.py index 9f230e7..6dd1e68 100644 --- a/black.py +++ b/black.py @@ -2165,6 +2165,11 @@ def is_vararg(leaf: Leaf, within: Set[NodeType]) -> bool: def max_delimiter_priority_in_atom(node: LN) -> int: + """Return maximum delimiter priority inside `node`. + + This is specific to atoms with contents contained in a pair of parentheses. + If `node` isn't an atom or there are no enclosing parentheses, returns 0. + """ if node.type != syms.atom: return 0