Skip to content

Commit

Permalink
🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
aaarrti committed Apr 28, 2024
1 parent 0e4b1ea commit 1b7bb85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantus/helpers/model/pytorch_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1b7bb85

Please sign in to comment.