From 40e4866c2162e854123ba2cfe26a100616aad6ad Mon Sep 17 00:00:00 2001 From: Graham Hukill Date: Tue, 11 Jun 2024 11:43:09 -0400 Subject: [PATCH] Ignore untyped imports via pyproject.toml --- pyproject.toml | 7 +++++++ sapinvoices/sap.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d646080..f3bb840 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,6 +10,13 @@ disallow_untyped_calls = true disallow_untyped_defs = true exclude = ["tests/"] +[[tool.mypy.overrides]] +module = [ + "fabric", + "flatdict" +] +ignore_missing_imports = true + [tool.pytest.ini_options] log_level = "INFO" diff --git a/sapinvoices/sap.py b/sapinvoices/sap.py index 128a2db..91b66cc 100644 --- a/sapinvoices/sap.py +++ b/sapinvoices/sap.py @@ -9,8 +9,8 @@ from math import fsum from typing import Any, Literal -import fabric # type: ignore[import-untyped] -import flatdict # type: ignore[import-untyped] +import fabric +import flatdict import requests.exceptions from paramiko import RSAKey