From d63e93e6b8ede1e4638a0e971c9b7ebc96e5c121 Mon Sep 17 00:00:00 2001 From: Thibaut Lunet Date: Fri, 17 Jan 2025 09:47:45 +0100 Subject: [PATCH] TL: tentative to solve static typing issue with no mpi4py --- pySDC/helpers/fieldsIO.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pySDC/helpers/fieldsIO.py b/pySDC/helpers/fieldsIO.py index d7b32d980..732933117 100644 --- a/pySDC/helpers/fieldsIO.py +++ b/pySDC/helpers/fieldsIO.py @@ -43,15 +43,18 @@ import numpy as np from typing import Type, TypeVar +T = TypeVar("T") + try: from mpi4py import MPI except ImportError: class MPI: COMM_WORLD = None + Intracomm = T + -T = TypeVar("T") # Supported data types DTYPES = {