From accd7a89417214889855f187b2a0da53ac70ed7d Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 7 Jun 2019 13:35:20 +0100 Subject: [PATCH] Logging._log()'s `params` arg should be typing.Optiona[] --- src/Logging.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Logging.py b/src/Logging.py index 5c3d873c..bb7a4dbe 100644 --- a/src/Logging.py +++ b/src/Logging.py @@ -61,5 +61,6 @@ class Log(object): self._log(message, params, logging.ERROR, kwargs) def critical(self, message: str, params: typing.List=None, **kwargs): self._log(message, params, logging.CRITICAL, kwargs) - def _log(self, message: str, params: typing.List, level: int, kwargs: dict): + def _log(self, message: str, params: typing.Optional[typing.List], + level: int, kwargs: dict): self.logger.log(level, message, *(params or []), **kwargs)