remove import for typing.override
This commit is contained in:
parent
52449d367e
commit
1a1442a7d2
2 changed files with 1 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# SPDX-FileCopyrightText: 2024-present Marc Koch <marc-koch@posteo.de>
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
__version__ = "1.0.0rc0"
|
||||
__version__ = "1.0.0rc1"
|
|
@ -4,7 +4,6 @@ import json
|
|||
import logging
|
||||
import logging.config
|
||||
from pathlib import Path
|
||||
from typing import override
|
||||
|
||||
from platformdirs import user_log_dir
|
||||
|
||||
|
@ -85,7 +84,6 @@ class JSONFormatter(logging.Formatter):
|
|||
super().__init__()
|
||||
self.fmt_keys = fmt_keys if fmt_keys is not None else {}
|
||||
|
||||
@override
|
||||
def format(self, record: logging.LogRecord) -> str:
|
||||
message = self._prepare_log_dict(record)
|
||||
return json.dumps(message, default=str)
|
||||
|
|
Loading…
Add table
Reference in a new issue