From: Ɓukasz Langa Date: Thu, 19 Apr 2018 01:13:36 +0000 (-0700) Subject: Docstring for `max_delimiter_priority_in_atom()` X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/aa5629204ccd11754d00a9bcc11d9bafdeecef67 Docstring for `max_delimiter_priority_in_atom()` --- 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