Loading CHANGES.md +6 −0 Changes for CHANGES.md: 6 added lines, 0 removed lines. Original line number Diff line number Diff line # Change Log ## Unreleased ### _Black_ - Restored compatibility with Click 8.0 on Python 3.6 when LANG=C used (#2227) ## 21.5b1 ### _Black_ Loading mypy.ini +4 −2 Changes for mypy.ini: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -33,5 +33,7 @@ cache_dir=/dev/null [mypy-aiohttp.*] follow_imports=skip [mypy-_version] follow_imports=skip [mypy-black] # The following is because of `patch_click()`. Remove when # we drop Python 3.6 support. warn_unused_ignores=False src/black/__init__.py +4 −2 Changes for src/black/__init__.py: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -1029,7 +1029,7 @@ def nullcontext() -> Iterator[None]: def patch_click() -> None: """Make Click not crash. """Make Click not crash on Python 3.6 with LANG=C. On certain misconfigured environments, Python 3 selects the ASCII encoding as the default which restricts paths that it can access during the lifetime of the Loading @@ -1047,7 +1047,9 @@ def patch_click() -> None: for module in (core, _unicodefun): if hasattr(module, "_verify_python3_env"): module._verify_python3_env = lambda: None module._verify_python3_env = lambda: None # type: ignore if hasattr(module, "_verify_python_env"): module._verify_python_env = lambda: None # type: ignore def patched_main() -> None: Loading Loading
CHANGES.md +6 −0 Changes for CHANGES.md: 6 added lines, 0 removed lines. Original line number Diff line number Diff line # Change Log ## Unreleased ### _Black_ - Restored compatibility with Click 8.0 on Python 3.6 when LANG=C used (#2227) ## 21.5b1 ### _Black_ Loading
mypy.ini +4 −2 Changes for mypy.ini: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -33,5 +33,7 @@ cache_dir=/dev/null [mypy-aiohttp.*] follow_imports=skip [mypy-_version] follow_imports=skip [mypy-black] # The following is because of `patch_click()`. Remove when # we drop Python 3.6 support. warn_unused_ignores=False
src/black/__init__.py +4 −2 Changes for src/black/__init__.py: 4 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -1029,7 +1029,7 @@ def nullcontext() -> Iterator[None]: def patch_click() -> None: """Make Click not crash. """Make Click not crash on Python 3.6 with LANG=C. On certain misconfigured environments, Python 3 selects the ASCII encoding as the default which restricts paths that it can access during the lifetime of the Loading @@ -1047,7 +1047,9 @@ def patch_click() -> None: for module in (core, _unicodefun): if hasattr(module, "_verify_python3_env"): module._verify_python3_env = lambda: None module._verify_python3_env = lambda: None # type: ignore if hasattr(module, "_verify_python_env"): module._verify_python_env = lambda: None # type: ignore def patched_main() -> None: Loading