From aa5629204ccd11754d00a9bcc11d9bafdeecef67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Langa?= Date: Wed, 18 Apr 2018 18:13:36 -0700 Subject: [PATCH] Docstring for `max_delimiter_priority_in_atom()` --- black.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5