From 27171fe79ae0805828121b381eabf9335580a745 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Mon, 30 Nov 2026 11:32:05 +0100 Subject: [PATCH] Exclude `folium` from the "untyped-call" check `folium` has no type annotations, so every call into it counted as untyped --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9de9cb9..2d301b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -354,8 +354,12 @@ disallow_any_generics = true # Disallow functions with incomplete type annotations disallow_incomplete_defs = true -# Disallow calling functions without type annotations +# Disallow calling functions without type annotations ... disallow_untyped_calls = true +# ... except for libraries without type annotations +untyped_calls_exclude = [ + "folium", +] # Disallow functions without type annotations (or incomplete annotations) disallow_untyped_defs = true