From 29c3787dcfd8d156272391cfb0f301806345dbbb Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Wed, 10 Aug 2022 14:29:47 -0700 Subject: [PATCH] Use debug f-strings for feature detection (#3215) Fixes GH-2907. --- CHANGES.md | 2 ++ src/black/__init__.py | 7 +++++++ src/black/mode.py | 5 +++++ tests/test_black.py | 20 ++++++++++++++++++++ 4 files changed, 34 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 5b29f20bfff..1fc8c65d6d8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -33,6 +33,8 @@ +- Black now uses the presence of debug f-strings to detect target version. (#3215) + ### Documentation