From 3e0feecfb8a7d01c4ac2521dc17df2f80e95b5ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Thu, 4 May 2023 20:56:43 +0300 Subject: [PATCH] chore(mypy): skip argcomplete import for now Errors out with `python_version` < 3.6 due to variable annotations in use in recent versions. --- hashpipe/__main__.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hashpipe/__main__.py b/hashpipe/__main__.py index a61b326..23d809a 100644 --- a/hashpipe/__main__.py +++ b/hashpipe/__main__.py @@ -96,7 +96,7 @@ def pattern(arg: str) -> Pattern[bytes]: ) try: - import argcomplete # type: ignore[import] + import argcomplete except ImportError: pass else: diff --git a/setup.cfg b/setup.cfg index ecfe21f..c043660 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,7 +46,7 @@ disallow_any_decorated = True disallow_any_explicit = True warn_unreachable = True exclude = ^(build|venv)/ -[mypy-nox.*,pytest.*,_pytest.*] +[mypy-argcomplete.*,nox.*,pytest.*,_pytest.*] # variable annotations present, errors out with python_version < 3.6 follow_imports = skip [mypy-noxfile]