Skip to content

Commit

Permalink
Remove ignores in patch_click
Browse files Browse the repository at this point in the history
May help unblock psf#2431
  • Loading branch information
nipunn1313 committed Oct 29, 2021
1 parent 5434407 commit 45f1921
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/black/__init__.py
Expand Up @@ -28,6 +28,7 @@
Sized,
Tuple,
Union,
cast,
)

from dataclasses import replace
Expand Down Expand Up @@ -1291,11 +1292,11 @@ def patch_click() -> None:
except ModuleNotFoundError:
return

for module in (core, _unicodefun):
for module in cast(Any, (core, _unicodefun)):
if hasattr(module, "_verify_python3_env"):
module._verify_python3_env = lambda: None # type: ignore
module._verify_python3_env = lambda: None
if hasattr(module, "_verify_python_env"):
module._verify_python_env = lambda: None # type: ignore
module._verify_python_env = lambda: None


def patched_main() -> None:
Expand Down

0 comments on commit 45f1921

Please sign in to comment.