Skip to content

Commit d63e93e

Browse files
committed
TL: tentative to solve static typing issue with no mpi4py
1 parent f08b9f4 commit d63e93e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pySDC/helpers/fieldsIO.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,18 @@
4343
import numpy as np
4444
from typing import Type, TypeVar
4545

46+
T = TypeVar("T")
47+
4648
try:
4749
from mpi4py import MPI
4850
except ImportError:
4951

5052
class MPI:
5153
COMM_WORLD = None
54+
Intracomm = T
55+
5256

5357

54-
T = TypeVar("T")
5558

5659
# Supported data types
5760
DTYPES = {

0 commit comments

Comments
 (0)