Skip to content

Commit

Permalink
Pipe.__init__: fix source TypeError's message
Browse files Browse the repository at this point in the history
  • Loading branch information
ebonnal committed Dec 18, 2023
1 parent ec85123 commit aabaf74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kioss/_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, source: Callable[[], Iterable[T]]) -> None:
self.upstream: "Optional[Pipe]" = None
if not callable(source):
raise TypeError(
f"source must be a callable returning an iterator, but the provided source is not a callable: got source '{source}' of type {type(source)}."
f"source must be a callable but got a {type(source)}"
)
self.source = source

Expand Down

0 comments on commit aabaf74

Please sign in to comment.