From 0dc1991b90f4fb7b0b2339afc2f4c13f06971bae Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Sat, 30 Nov 2024 09:44:36 +0100 Subject: [PATCH] ignore missing imports --- .github/workflows/mypy.yml | 2 +- pyfileindex/pyfileindex.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index 5ee74f9..b8f6150 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -19,4 +19,4 @@ jobs: - name: Install mypy run: pip install mypy - name: Test - run: mypy ${{ github.event.repository.name }} \ No newline at end of file + run: mypy --ignore-missing-imports ${{ github.event.repository.name }} \ No newline at end of file diff --git a/pyfileindex/pyfileindex.py b/pyfileindex/pyfileindex.py index e4a346f..8198c48 100644 --- a/pyfileindex/pyfileindex.py +++ b/pyfileindex/pyfileindex.py @@ -2,10 +2,10 @@ from typing import Callable, Generator, Optional import numpy as np -import pandas # type: ignore +import pandas try: - from os import scandir # type: ignore + from os import scandir except ImportError: from scandir import scandir # type: ignore