From: Nipunn Koorapati Date: Fri, 22 Oct 2021 03:59:48 +0000 (-0700) Subject: Remove some unneeded exceptions from mypy.ini (#2557) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/62ed5389fca51384721245ff1c2f1c62a13a04ff?ds=inline;hp=da8a5bb1895e5434695d9dc2d844119cd8f88524 Remove some unneeded exceptions from mypy.ini (#2557) --- diff --git a/mypy.ini b/mypy.ini index dabef45..6e8b790 100644 --- a/mypy.ini +++ b/mypy.ini @@ -32,14 +32,6 @@ check_untyped_defs=True # No incremental mode cache_dir=/dev/null -[mypy-aiohttp.*] -follow_imports=skip - [mypy-black_primer.*] # Until we're not supporting 3.6 primer needs this disallow_any_generics=False - -[mypy-black] -# The following is because of `patch_click()`. Remove when -# we drop Python 3.6 support. -warn_unused_ignores=False diff --git a/src/black/__init__.py b/src/black/__init__.py index f01e449..5c6cb67 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -1287,7 +1287,7 @@ def patch_click() -> None: """ try: from click import core - from click import _unicodefun # type: ignore + from click import _unicodefun except ModuleNotFoundError: return