Add # type: ignore for click._unicodefun import (#2981)

This commit is contained in:
Jelle Zijlstra 2022-03-30 14:01:03 -07:00 committed by GitHub
parent 3dea6e3635
commit a66016cb94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: