From 2763037eed9034d80c430cc9fa4a3ea4f54b172d Mon Sep 17 00:00:00 2001
From: Marcus Mohr <marcus.mohr@lmu.de>
Date: Tue, 3 Dec 2024 16:16:41 +0100
Subject: [PATCH] Annote a call to local_dofs to avoid problem with type
 checker

See issue #41 for details.
---
 hog/operator_generation/operators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hog/operator_generation/operators.py b/hog/operator_generation/operators.py
index 2e039cd..ff104c3 100644
--- a/hog/operator_generation/operators.py
+++ b/hog/operator_generation/operators.py
@@ -1298,7 +1298,7 @@ class HyTeGElementwiseOperator:
                         sp.Symbol(dof_symbol.name),
                         coeffs[dof_symbol.function_id].local_dofs(
                             geometry,
-                            element_index,
+                            element_index,  # type: ignore[arg-type] # list of sympy expressions also works
                             element_type,
                             indexing_info,
                             element_vertex_order,
-- 
GitLab