X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/712f8b37fb12a40ec6ea86903f44c2d0750f56a3..7f7673d941a947a8d392c8c0866d3d588affc174:/src/black/__init__.py diff --git a/src/black/__init__.py b/src/black/__init__.py index 3a2d1cb..3a1ce24 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -1296,6 +1296,13 @@ def get_features_used( # noqa: C901 ): features.add(Feature.ANN_ASSIGN_EXTENDED_RHS) + elif ( + n.type == syms.except_clause + and len(n.children) >= 2 + and n.children[1].type == token.STAR + ): + features.add(Feature.EXCEPT_STAR) + return features