From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Tue, 16 Nov 2021 05:07:25 +0000 (-0500) Subject: Fix 3.10's supported features (#2614) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/0d1b957d400e2884ad312b4c113ee215effb8256?hp=117891878e5be4d6b771ae5de299e51b679cea27 Fix 3.10's supported features (#2614) --- diff --git a/src/black/mode.py b/src/black/mode.py index 3c16756..e241753 100644 --- a/src/black/mode.py +++ b/src/black/mode.py @@ -112,6 +112,15 @@ VERSION_TO_FEATURES: Dict[TargetVersion, Set[Feature]] = { Feature.POS_ONLY_ARGUMENTS, }, TargetVersion.PY310: { + Feature.UNICODE_LITERALS, + Feature.F_STRINGS, + Feature.NUMERIC_UNDERSCORES, + Feature.TRAILING_COMMA_IN_CALL, + Feature.TRAILING_COMMA_IN_DEF, + Feature.ASYNC_KEYWORDS, + Feature.ASSIGNMENT_EXPRESSIONS, + Feature.RELAXED_DECORATORS, + Feature.POS_ONLY_ARGUMENTS, Feature.PATTERN_MATCHING, }, }