From f57c9f3f0df8ac46d2a6dfbc7b523d52082f5c81 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Wynen Date: Tue, 10 Oct 2023 09:18:23 +0200 Subject: [PATCH] Do not use TypeGuard --- src/sciline/pipeline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sciline/pipeline.py b/src/sciline/pipeline.py index c92264e0..0e2f8ee2 100644 --- a/src/sciline/pipeline.py +++ b/src/sciline/pipeline.py @@ -16,7 +16,6 @@ Optional, Tuple, Type, - TypeGuard, TypeVar, Union, get_args, @@ -119,7 +118,7 @@ def _find_nodes_in_paths( def _is_multiple_keys( keys: type | Iterable[type] | Item[T], -) -> TypeGuard[Iterable[type]]: +) -> bool: # Cannot simply use isinstance(keys, Iterable) because that is True for # generic aliases of iterable types, e.g., #