From: Daniel Arndt Date: Thu, 13 Jul 2023 13:30:35 +0000 (-0300) Subject: Add type hint to logger X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F13669%2F3;p=osm%2Fcommon.git Add type hint to logger Change-Id: Ic8318cc71324deb34e0fc70963eae78e6b79a6ba Signed-off-by: Daniel Arndt --- diff --git a/osm_common/temporal/workflows/base.py b/osm_common/temporal/workflows/base.py index 44b73be..d5d22bf 100644 --- a/osm_common/temporal/workflows/base.py +++ b/osm_common/temporal/workflows/base.py @@ -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__}")