From a66016cb949590863d11e329e65bbb383727125e Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 30 Mar 2022 14:01:03 -0700 Subject: [PATCH 1/1] Add # type: ignore for click._unicodefun import (#2981) --- src/black/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index e9d3c1b..bdeb732 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -1435,7 +1435,9 @@ def patch_click() -> None: else: modules.append(core) try: - from click import _unicodefun + # Removed in Click 8.1.0 and newer; we keep this around for users who have + # older versions installed. + from click import _unicodefun # type: ignore except ImportError: pass else: -- 2.39.5