Rename argument to SerialSender from pack to packer. Fixes #200. (#216)

This commit is contained in:
Felix Weiler
2025-04-25 13:14:48 +02:00
committed by GitHub
parent 2bd5399049
commit 6feec59b81

View File

@@ -24,10 +24,10 @@ class SerialSender(Sender[T]):
packer: Function to pack data for sending.
"""
def __init__(self, config: SerialConf, pack: Packer[T]) -> None:
def __init__(self, config: SerialConf, packer: Packer[T]) -> None:
"""SerialSink constructor."""
self.config = config
self.packer = pack
self.packer = packer
self._loop = asyncio.get_running_loop()
self._executor = ThreadPoolExecutor(max_workers=2)
self._lock = asyncio.Lock()