From cf2b22b34a6bdeb80a4a0e658a6dd7c81a70cf50 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 2 Feb 2022 23:04:54 +0100 Subject: [PATCH] does not exist for older numpy versions --- python/damask/_typehints.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/damask/_typehints.py b/python/damask/_typehints.py index 793e09bc6..0b4a56a69 100644 --- a/python/damask/_typehints.py +++ b/python/damask/_typehints.py @@ -9,4 +9,6 @@ import numpy as np FloatSequence = Union[np.ndarray,Sequence[float]] IntSequence = Union[np.ndarray,Sequence[int]] FileHandle = Union[TextIO, str, Path] -NumpyRngSeed = Union[int, IntSequence, np.random.SeedSequence, np.random.BitGenerator, np.random.Generator] +NumpyRngSeed = Union[int, IntSequence, np.random.SeedSequence, np.random.Generator] +# BitGenerator does not exists in older numpy versions +#NumpyRngSeed = Union[int, IntSequence, np.random.SeedSequence, np.random.BitGenerator, np.random.Generator]