Fix | type mis match
This commit is contained in:
parent
276c5b932a
commit
5ba4a35f27
@ -36,7 +36,7 @@ class BaseFormatter(Options):
|
||||
def format(self, message: LogMessage) -> str:
|
||||
raise NotImplementedError(f'{self.__class__.__name__}.format is not implemented')
|
||||
|
||||
def _format(self, message: LogMessage) -> str:
|
||||
def _format(self, message: LogMessage) -> LogMessage:
|
||||
"""
|
||||
Format message
|
||||
:param message:
|
||||
@ -44,6 +44,7 @@ class BaseFormatter(Options):
|
||||
"""
|
||||
for formatter in self.sub_formatter:
|
||||
message = formatter._format(message)
|
||||
return message
|
||||
|
||||
|
||||
class TimeFormatter(BaseFormatter):
|
||||
|
Loading…
Reference in New Issue
Block a user