Commit aa562920 authored by Łukasz Langa's avatar Łukasz Langa
Browse files

Docstring for `max_delimiter_priority_in_atom()`

parent 15d5e36e
Loading
Loading
Loading
Loading
+5 −0
Changes for black.py: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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