From: Ɓukasz Langa Date: Wed, 9 May 2018 06:03:59 +0000 (-0700) Subject: Fix docstring of is_vararg X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/7595dabb4387237b76e80bdee72fb6323b2d603b Fix docstring of is_vararg --- diff --git a/black.py b/black.py index 0fa9df0..efe5af9 100644 --- a/black.py +++ b/black.py @@ -2312,8 +2312,8 @@ def is_vararg(leaf: Leaf, within: Set[NodeType]) -> bool: """Return True if `leaf` is a star or double star in a vararg or kwarg. If `within` includes VARARGS_PARENTS, this applies to function signatures. - If `within` includes COLLECTION_LIBERALS_PARENTS, it applies to right - hand-side extended iterable unpacking (PEP 3132) and additional unpacking + If `within` includes UNPACKING_PARENTS, it applies to right hand-side + extended iterable unpacking (PEP 3132) and additional unpacking generalizations (PEP 448). """ if leaf.type not in STARS or not leaf.parent: