From 0d1b957d400e2884ad312b4c113ee215effb8256 Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Tue, 16 Nov 2021 00:07:25 -0500 Subject: [PATCH] Fix 3.10's supported features (#2614) --- src/black/mode.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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, }, } -- 2.39.5