Add type hint to logger 69/13669/3
authorDaniel Arndt <daniel.arndt@canonical.com>
Thu, 13 Jul 2023 13:30:35 +0000 (10:30 -0300)
committerbeierlm <mark.beierl@canonical.com>
Thu, 13 Jul 2023 17:25:13 +0000 (19:25 +0200)
Change-Id: Ic8318cc71324deb34e0fc70963eae78e6b79a6ba
Signed-off-by: Daniel Arndt <daniel.arndt@canonical.com>
osm_common/temporal/workflows/base.py

index 44b73be..d5d22bf 100644 (file)
@@ -17,8 +17,9 @@
 
 from abc import ABC
 import logging
+from logging import Logger
 
 
 class BaseWorkflow(ABC):
     def __init__(self):
-        self.logger = logging.getLogger(f"lcm.wfl.{self.__class__.__name__}")
+        self.logger: Logger = logging.getLogger(f"lcm.wfl.{self.__class__.__name__}")