From 62ed5389fca51384721245ff1c2f1c62a13a04ff Mon Sep 17 00:00:00 2001 From: Nipunn Koorapati Date: Thu, 21 Oct 2021 20:59:48 -0700 Subject: [PATCH] Remove some unneeded exceptions from mypy.ini (#2557) --- mypy.ini | 8 -------- src/black/__init__.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) 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 -- 2.39.2