fix ruff errors

This commit is contained in:
Mose Müller 2023-11-28 15:21:27 +01:00
parent ba5b4e7be4
commit 145ff89072
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ class Image(DataService):
return self._value
@property
def format(self) -> str: # noqa: A003
def format(self) -> str:
return self._format
def load_from_path(self, path: Path | str) -> None:

View File

@ -47,7 +47,7 @@ class SocketIOHandler(logging.Handler):
super().__init__(logging.ERROR)
self._sio = sio
def format(self, record: logging.LogRecord) -> str: # noqa: A003
def format(self, record: logging.LogRecord) -> str:
return f"{record.name}:{record.funcName}:{record.lineno} - {record.message}"
def emit(self, record: logging.LogRecord) -> None: