From eca4be4e5e7084b0b3e916e77af5b1d7acd0f139 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 21 Aug 2024 11:35:21 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=8E=E2=80=8D=E2=99=80=EF=B8=8F=20Genuf?= =?UTF-8?q?lect=20to=20the=20types.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ref Lucretiel/autocommand#34 --- mypy.ini | 4 ++++ oathtool/generate-script.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mypy.ini b/mypy.ini index 83b0d15..b62388b 100644 --- a/mypy.ini +++ b/mypy.ini @@ -12,3 +12,7 @@ explicit_package_bases = True # Disable overload-overlap due to many false-positives disable_error_code = overload-overlap + +# Lucretiel/autocommand#34 +[mypy-autocommand] +ignore_missing_imports = True diff --git a/oathtool/generate-script.py b/oathtool/generate-script.py index 216a54d..8c2f58d 100644 --- a/oathtool/generate-script.py +++ b/oathtool/generate-script.py @@ -1,9 +1,9 @@ import argparse try: - from importlib.resources import files # type: ignore + from importlib.resources import files except ImportError: # pragma: nocover - from importlib_resources import files # type: ignore + from importlib_resources import files # type: ignore[import-not-found, no-redef] import path import autocommand