Skip to content

Commit

Permalink
Add # type: ignore for click._unicodefun import (#2981)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra authored Mar 30, 2022
1 parent 3dea6e3 commit a66016c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a66016c

Please sign in to comment.