Docstring for max_delimiter_priority_in_atom()
This commit is contained in:
parent
15d5e36ea3
commit
aa5629204c
5
black.py
5
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user