From 1b7bb852e1488a2a9042bf487ecb116b99e75710 Mon Sep 17 00:00:00 2001 From: aaarrti Date: Sun, 28 Apr 2024 14:49:47 +0200 Subject: [PATCH] :construction: --- quantus/helpers/model/pytorch_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantus/helpers/model/pytorch_model.py b/quantus/helpers/model/pytorch_model.py index 8ea2dd8e..5ca4961e 100644 --- a/quantus/helpers/model/pytorch_model.py +++ b/quantus/helpers/model/pytorch_model.py @@ -518,7 +518,7 @@ def random_layer_generator_length(self) -> int: ) -def safe_isinstance(obj: Any, class_path_str: Iterable[str] | str) -> bool: +def safe_isinstance(obj: Any, class_path_str: Union[Iterable[str], str]) -> bool: """Acts as a safe version of isinstance without having to explicitly import packages which may not exist in the users environment.