Skip to content

Commit

Permalink
Do not use TypeGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
jl-wynen committed Oct 10, 2023
1 parent a663ce8 commit f57c9f3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sciline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Optional,
Tuple,
Type,
TypeGuard,
TypeVar,
Union,
get_args,
Expand Down Expand Up @@ -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.,
#
Expand Down

0 comments on commit f57c9f3

Please sign in to comment.