X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3b2a7d196bc1984aed194cca26a7900968ce4409..2f3fa1f6d0cbc2a3f31c7440c422da173b068e7b:/src/black/__init__.py diff --git a/src/black/__init__.py b/src/black/__init__.py index 83a3923..fdbaf04 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -1123,7 +1123,11 @@ def get_features_used(node: Node) -> Set[Feature]: features.add(Feature.NUMERIC_UNDERSCORES) elif n.type == token.SLASH: - if n.parent and n.parent.type in {syms.typedargslist, syms.arglist}: + if n.parent and n.parent.type in { + syms.typedargslist, + syms.arglist, + syms.varargslist, + }: features.add(Feature.POS_ONLY_ARGUMENTS) elif n.type == token.COLONEQUAL: