From 23743c73d47fe9631c3c35e966a484d469f6ff2a Mon Sep 17 00:00:00 2001 From: Daniel Otto de Mentock Date: Wed, 19 Jan 2022 10:37:22 +0100 Subject: [PATCH] adjusted util.hybrid_IA function argument --- python/damask/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/damask/util.py b/python/damask/util.py index a28a9e2eb..053ca9a2e 100644 --- a/python/damask/util.py +++ b/python/damask/util.py @@ -14,6 +14,7 @@ import pathlib import numpy as np import h5py +from ._typehints import IntSequence from . import version # limit visibility @@ -366,7 +367,7 @@ def execution_stamp(class_name: str, function_name: str = None) -> str: return f'damask.{class_name}{_function_name} v{version} ({now})' -def hybrid_IA(dist: np.ndarray, N: int, rng_seed: Union[int, np.ndarray] = None) -> np.ndarray: +def hybrid_IA(dist: np.ndarray, N: int, rng_seed: Union[int, IntSequence] = None) -> np.ndarray: """ Hybrid integer approximation.