Skip to content

Commit

Permalink
chore(sinks): rename sinks._SourceOfCallable class
Browse files Browse the repository at this point in the history
Rename the private `sghi.etl.commons.sinks._SourceOfCallable` class to
`sghi.etl.commons.sinks._SinkOfCallable`.
  • Loading branch information
kennedykori committed Apr 15, 2024
1 parent 6a89c85 commit 2051ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sghi/etl/commons/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def sink(f: Callable[[_PDT], None]) -> Sink[_PDT]:
"""
ensure_callable(f, message="A callable object is required.")

return _SourceOfCallable(delegate_to=f)
return _SinkOfCallable(delegate_to=f)


# =============================================================================
Expand All @@ -80,7 +80,7 @@ def sink(f: Callable[[_PDT], None]) -> Sink[_PDT]:


@final
class _SourceOfCallable(Sink[_PDT], Generic[_PDT]):
class _SinkOfCallable(Sink[_PDT], Generic[_PDT]):
__slots__ = ("_delegate_to", "_is_disposed", "_logger")

def __init__(self, delegate_to: _SinkCallable[_PDT]) -> None:
Expand Down

0 comments on commit 2051ae9

Please sign in to comment.