]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add # type: ignore for click._unicodefun import (#2981)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Wed, 30 Mar 2022 21:01:03 +0000 (14:01 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Mar 2022 21:01:03 +0000 (14:01 -0700)
src/black/__init__.py

index e9d3c1b795a8fa167a9c3bcb69320e9d5a39a302..bdeb73273bc96ca56d967629ea57e5d6dd802da9 100644 (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: