mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-17 09:29:26 +01:00
fix ruff errors
This commit is contained in:
@@ -28,7 +28,7 @@ class Image(DataService):
|
|||||||
return self._value
|
return self._value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def format(self) -> str: # noqa: A003
|
def format(self) -> str:
|
||||||
return self._format
|
return self._format
|
||||||
|
|
||||||
def load_from_path(self, path: Path | str) -> None:
|
def load_from_path(self, path: Path | str) -> None:
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class SocketIOHandler(logging.Handler):
|
|||||||
super().__init__(logging.ERROR)
|
super().__init__(logging.ERROR)
|
||||||
self._sio = sio
|
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}"
|
return f"{record.name}:{record.funcName}:{record.lineno} - {record.message}"
|
||||||
|
|
||||||
def emit(self, record: logging.LogRecord) -> None:
|
def emit(self, record: logging.LogRecord) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user