X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/15d5e36ea38988084584639b02aafcaaa2744dcf..6a9d09cd44120fe7ef59e8124732ff3a51d8c0ad:/black.py?ds=inline 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