Skip to content

Commit

Permalink
TL: tentative to solve static typing issue with no mpi4py
Browse files Browse the repository at this point in the history
  • Loading branch information
tlunet committed Jan 17, 2025
1 parent f08b9f4 commit d63e93e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pySDC/helpers/fieldsIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d63e93e

Please sign in to comment.