From 615b1487fcb1a04fd2fd7db75d053f23debd35cf Mon Sep 17 00:00:00 2001 From: Owen Campbell Date: Sat, 9 Nov 2024 14:39:23 +0000 Subject: [PATCH] Make messaging logger a keyword only parameter Co-authored-by: stu <36813890+s-cork@users.noreply.github.com> --- client_code/messaging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_code/messaging.py b/client_code/messaging.py index d5668d8e..b7541bc9 100644 --- a/client_code/messaging.py +++ b/client_code/messaging.py @@ -31,7 +31,7 @@ def __init__(self, subscriber, handler): class Publisher: default_log_level = INFO - def __init__(self, logger: _Logger = None, **kwargs): + def __init__(self, *, logger: _Logger = None, **kwargs): self.logger = logger or _null_logger self.subscribers = {} self._deprecation_warnings(**kwargs)