fixup! Add ANN20X rules to ruff

This commit is contained in:
Julian Stirling 2025-08-27 14:28:14 +01:00
parent 2ce49088e7
commit 8f78369aaf

View file

@ -6,7 +6,7 @@ the microscope, server, and thing states to the web API.
from collections.abc import Mapping from collections.abc import Mapping
import socket import socket
from typing import Optional from typing import Optional, Any
from uuid import UUID, uuid4 from uuid import UUID, uuid4
import subprocess import subprocess
import os import os
@ -127,7 +127,7 @@ class OpenFlexureSystem(lt.Thing):
return metadata_getter() return metadata_getter()
@property @property
def thing_state(self) -> Mapping: def thing_state(self) -> Mapping[str, Any]:
"""Summary metadata describing the current state of the Thing.""" """Summary metadata describing the current state of the Thing."""
return { return {
"hostname": self.hostname, "hostname": self.hostname,